Hi,
Throughout my process, I populate ListBox4 with a variable number of rows (8 columns). When the user clicks the commandbutton, I wish to loop through ListBox4 and write each row (with the 8 columns) to sheet1.
Example (ListBox4):
9999| Anytown| CA| 12345| Monday| 4/30/2012| 8:00AM| John Doe|
8888| Anytown| CA| 12345|Tuesday| 5/1/2012 | 8:00AM| John Doe|
I believe i can loop using the Listcount however, I do not know how to index each row in the listbox.
for i = 0 to ListBox4.ListCount -1
Sheets("Sheet1").cells(RowNum,Coulmn) = ????
Next
Any help would be great.
Thanks,
Throughout my process, I populate ListBox4 with a variable number of rows (8 columns). When the user clicks the commandbutton, I wish to loop through ListBox4 and write each row (with the 8 columns) to sheet1.
Example (ListBox4):
9999| Anytown| CA| 12345| Monday| 4/30/2012| 8:00AM| John Doe|
8888| Anytown| CA| 12345|Tuesday| 5/1/2012 | 8:00AM| John Doe|
I believe i can loop using the Listcount however, I do not know how to index each row in the listbox.
for i = 0 to ListBox4.ListCount -1
Sheets("Sheet1").cells(RowNum,Coulmn) = ????
Next
Any help would be great.
Thanks,