The book says this should work:
Private sub obMonths_Click()
Listbox1.RowSource = "Sheet1!Months"
end sub
I tried setting Months
Set months = Range("a1:a25")
received error:Obj doesn't support property or method
I tried to assign the range a Name
Names.Add Name:="Months", RefersTo:="=Sheet3!$A$1:$A$25"
recieved error on listbox statement:Obj doesn't support property or method
I tried
ListBox1.RowSource = Range("a1:a25") 'got type mismatch
The form is on sheet#5, the list of Months is on sheet1. How do I reference the list on sheet1?
Thanks,
Trudye
Private sub obMonths_Click()
Listbox1.RowSource = "Sheet1!Months"
end sub
I tried setting Months
Set months = Range("a1:a25")
received error:Obj doesn't support property or method
I tried to assign the range a Name
Names.Add Name:="Months", RefersTo:="=Sheet3!$A$1:$A$25"
recieved error on listbox statement:Obj doesn't support property or method
I tried
ListBox1.RowSource = Range("a1:a25") 'got type mismatch
The form is on sheet#5, the list of Months is on sheet1. How do I reference the list on sheet1?
Thanks,
Trudye