Hi,
I have a combo box on a userform that needs to be filled from a different range each time,
The code I have below looks like it should work fine. But it errors on the strRowSource = line. Please can anyone offer any advice on the syntax?
Thanks
K
strRowSource = meFileName & "=!" & Sheets("LOV").Range("$B$" & firstRow & ":$B$" & (firstRow + numWords))
'strRowSource = wb4 & "!" & Sheets("LOV").Range("$B$" & firstRow & ":$B$" & (firstRow + numWords))
'strRowSource = meFileName & "!" & Sheets("LOV").Range("$B$" & firstRow & ":$B$" & (firstRow + numWords))
With frmChooseMonth.cmbChooseMonth
'Clear old ListBox RowSource
.RowSource = vbNullString
'Parse new one
.RowSource = strRowSource
End With
I have a combo box on a userform that needs to be filled from a different range each time,
The code I have below looks like it should work fine. But it errors on the strRowSource = line. Please can anyone offer any advice on the syntax?
Thanks
K
strRowSource = meFileName & "=!" & Sheets("LOV").Range("$B$" & firstRow & ":$B$" & (firstRow + numWords))
'strRowSource = wb4 & "!" & Sheets("LOV").Range("$B$" & firstRow & ":$B$" & (firstRow + numWords))
'strRowSource = meFileName & "!" & Sheets("LOV").Range("$B$" & firstRow & ":$B$" & (firstRow + numWords))
With frmChooseMonth.cmbChooseMonth
'Clear old ListBox RowSource
.RowSource = vbNullString
'Parse new one
.RowSource = strRowSource
End With