named range as rowsource
I don't understand.
Which one is poorly documented?
Joel wrote:
Dave: I don't recommend giving poorly documented microsoft internal tricks is
wise to people who barely know how to program VBA. What will they do when
they look at the code in a month and have no idea what the code really does?
"Dave Peterson" wrote:
Try:
..RowSource = "PoolTypes"
Personally, I find this more self-documenting:
..RowSource = worksheets("sheet9999").Range("PoolTypes").address (external:=true)
Karen53 wrote:
Hi,
I have a listbox that I am trying to set the rowsource with VBA. If I set
the rowsource manually in the properties window to mynameedrange, my code
works great. I'm having trouble with the code setting it with VBA.
Here's what I have:
With frmPoolTypes.lstPoolList
.RowSource = Range("PoolTypes")
.BoundColumn = 1
.ColumnCount = 1
.ListStyle = fmListStyleOption
End With
What am I doing wrong?
Thanks,
--
Dave Peterson
--
Dave Peterson
|