Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Sub loadparts(a)
  2.  
  3. Sheets("Sheet1").Select
  4.  
  5. Dim lists()
  6.  
  7. b = 2
  8.  
  9. 'what is the meaning of two dots.
  10.  
  11. x:
  12.  
  13. '''''''''''''''''''''''''''''''''''''''''''
  14.  
  15. If Cells(b, a) <> "" Then
  16.  
  17. ReDim Preserve lists(1 To b - 1)
  18.  
  19. lists(b - 1) = Sheets(b, a)
  20.  
  21. b = b - 1: GoTo x
  22.  
  23. End If
  24.  
  25.  
  26. UserForm1.ListBox1.List = lists()
  27.  
  28. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement