Can't seem to figure the syntax for this. I want to fill a listbox with all the data from Columns A to D in a worksheet. The following works fine if Columns A and D have the same number of filled rows. But I have, say 200 rows in Column A and only 30 in Column D. How can I get 200 rows of data for Columns A to D (including blanks) when the columsn are of different lenght?
Code:
varData = .Range(.Range("A2"), .Range("D65536").End(xlUp))