pimp_mentality
New Member
- Joined
- Oct 15, 2015
- Messages
- 46
Good Day Guys.
I currently use the following line of code to populate listbox1 when the userform is open
The thing is, this code only displays data in column B.
For the purposes of this project I would like data from columns B, E, F, H (in that order) to be displayed when the Userform is opened. To accomplish this I tried the following with zero success:
I would appreciate assistance re modifying the above code to accomplish this.
I currently use the following line of code to populate listbox1 when the userform is open
Code:
ListBox1.List = Sheets("PI").Range("Names2", Sheets("PI").Cells(Rows.Count, "B").End(xlUp)).Value
The thing is, this code only displays data in column B.
For the purposes of this project I would like data from columns B, E, F, H (in that order) to be displayed when the Userform is opened. To accomplish this I tried the following with zero success:
Code:
ListBox1.List = Sheets("PI").Range("Names2", Sheets("PI").Cells(Rows.Count, "B", "E", "F" and "H").End(xlUp)).Value
I would appreciate assistance re modifying the above code to accomplish this.