eddiev1972
New Member
- Joined
- Mar 22, 2010
- Messages
- 38
Can the controlsource property of a listbox refer to a different workbook from where the macro resides? If so, does that workbook need to be open?
I am receiving a "Could not set the controlsource property" error when trying to do so. It is possible I just have the syntax wrong.
I am setting the controlsource property to variable called "tempstring"
TempString displays as:
“W:\Data\[1035_CompData.xls]Sheet1’!a2:f14”
(The quotes generate as part of the string)
ListBox1.ControlSource = TempString
Thanks for any assistance!
I am receiving a "Could not set the controlsource property" error when trying to do so. It is possible I just have the syntax wrong.
I am setting the controlsource property to variable called "tempstring"
TempString displays as:
“W:\Data\[1035_CompData.xls]Sheet1’!a2:f14”
(The quotes generate as part of the string)
ListBox1.ControlSource = TempString
Thanks for any assistance!