Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to set a Combobox Rowsource property. I want to include the name
of a worksheet $$TEMP$$. When I use the code: ComboboxForms.RowSource = "$$TEMP$$!L1:M7" I get the error: Could not set the RowSource property. Invalid property value. How can I do this properly? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub UserForm_Initialize()
ComboBoxForms.ColumnCount = 2 ComboBoxForms.RowSource = "'$$TEMP$$'!L1:M7" End Sub worked for me. (added single quotes to contain the sheet name) -- Regards, Tom Ogilvy "FClifton" wrote: I am trying to set a Combobox Rowsource property. I want to include the name of a worksheet $$TEMP$$. When I use the code: ComboboxForms.RowSource = "$$TEMP$$!L1:M7" I get the error: Could not set the RowSource property. Invalid property value. How can I do this properly? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() You'll need to do it this way: ComboboxForms.RowSource = "'$$TEMP$$'!L1:M7" Notice the sheet name is enclosed in single quotes.. "FClifton" wrote: I am trying to set a Combobox Rowsource property. I want to include the name of a worksheet $$TEMP$$. When I use the code: ComboboxForms.RowSource = "$$TEMP$$!L1:M7" I get the error: Could not set the RowSource property. Invalid property value. How can I do this properly? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One mo
ComboboxForms.RowSource _ = worksheets("$$TEMP$$").range("L1:M7").address(exte rnal:=true) FClifton wrote: I am trying to set a Combobox Rowsource property. I want to include the name of a worksheet $$TEMP$$. When I use the code: ComboboxForms.RowSource = "$$TEMP$$!L1:M7" I get the error: Could not set the RowSource property. Invalid property value. How can I do this properly? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Runtime error 380 - Could not set the list property. Invalid property value. | Excel Programming | |||
Could not set the ControlSource property. Invalid property value error | Excel Programming | |||
Runtime Error 380 – Could not set the list property. Invalid property value | Excel Programming | |||
Rowsource Property | Excel Programming | |||
Runtime error 380: Could not set the List property. invalid property value of listbox | Excel Programming |