-
Solved: populate combobox problem
Hi All
Can anyone tell me what is wrong with the code below please as it doesnt add anything to my combobox?
thanks
Gibbo
[VBA]Dim iLastRow As Long
iLastRow = Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Row
ActiveWorkbook.Names.Add Name:="PopulateCombo", RefersToR1C1:=Sheets("Sheet2").Range("A1:A" & iLastRow)
Me.ComboBox1.RowSource = PopulateCombo[/VBA]
-
-
Hi Gibbo,
Add quotes.
Me.ComboBox1.RowSource = "PopulateCombo"
-
-
Thankyou both,
cant believe it was that simple
Gibbo
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules