Guest User

Untitled

a guest
Dec 14th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Type Level1_t
  2. Offset As Integer
  3. End Type
  4.  
  5. Private Enum Level2_Mode_t
  6. Typ
  7. TL
  8. End Enum
  9.  
  10. Private Type Level2_t
  11. Offset As Integer
  12. Mode As Level2_Mode_t
  13. End Type
  14.  
  15. Private Type Level3_t
  16. Offsets As Collection
  17. End Type
  18.  
  19. Private Type Structure_t
  20. Level1 As Level1_t
  21. Level2 As Collection
  22. Level3 As Collection
  23. End Type
  24.  
  25. Private Function Structure_f(Structure As Structure_t, _
  26. Workspace As Range, _
  27. Offset As Integer) As Structure_t
  28. End Function
  29.  
  30. Private Sub Worksheet_Change(ByVal Target As Range)
  31. 'Dim Structure As Structure_t
  32. 'Set Structure.Level2 = New Collection
  33. 'Set Structure.Level3 = New Collection
  34.  
  35. ' ...
  36.  
  37. Dim Workspace As Range
  38. Set Workspace = Workspace_f(Target)
  39.  
  40. Structure = Structure_f(Structure, Workspace, Offset)
Add Comment
Please, Sign In to add comment