0 Agios
Well-known Member
- Joined
- Feb 22, 2004
- Messages
- 570
- Office Version
- 365
I have this code that shows columns "A".
I want to add "C" "D"
Private Sub UserForm_Initialize()
Dim arrlist As Variant
Dim LR As Long
With Worksheets("Data")
LR = .Range("A" & Rows.Count).End(xlUp).Row
'Set RNGP = .Range("A3:A30" & LR)
Set RNGP = .Range("A1:A20" & LR)
arrlist = RNGP.Value
ListBox1.List = WorksheetFunction.Transpose(arrlist)
End With
End Sub
Thanks
I want to add "C" "D"
Private Sub UserForm_Initialize()
Dim arrlist As Variant
Dim LR As Long
With Worksheets("Data")
LR = .Range("A" & Rows.Count).End(xlUp).Row
'Set RNGP = .Range("A3:A30" & LR)
Set RNGP = .Range("A1:A20" & LR)
arrlist = RNGP.Value
ListBox1.List = WorksheetFunction.Transpose(arrlist)
End With
End Sub
Thanks