Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Friends I'm using Excel 2003 and on msform I have a simple textbox named txtFirstNo. Sometimes (I could not repeat problem bymyself) I get the error message 'Could not set the ControlSource property. Invalid property value' to an assignment statement:
txtFirstNo.ControlSource = dbInfo!E21. I have other text boxes whose control source set manually. They work perfectly fine. But this one gives me trouble. Any Idea why? Ömer Ayzan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try :
txtFirstNo.ControlSource = Worksheets("dbInfo").Range("E21").address as ControlSource requires a string. NickHK "Ömer Ayzan" wrote in message ... Friends I'm using Excel 2003 and on msform I have a simple textbox named txtFirstNo. Sometimes (I could not repeat problem bymyself) I get the error message 'Could not set the ControlSource property. Invalid property value' to an assignment statement: txtFirstNo.ControlSource = dbInfo!E21. I have other text boxes whose control source set manually. They work perfectly fine. But this one gives me trouble. Any Idea why? Ömer Ayzan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As an aside, best to use an external reference
txtFirstNo.ControlSource = Worksheets("dbInfo").Range("E21").address(,,,True) -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "NickHK" wrote in message ... Try : txtFirstNo.ControlSource = Worksheets("dbInfo").Range("E21").address as ControlSource requires a string. NickHK "Ömer Ayzan" wrote in message ... Friends I'm using Excel 2003 and on msform I have a simple textbox named txtFirstNo. Sometimes (I could not repeat problem bymyself) I get the error message 'Could not set the ControlSource property. Invalid property value' to an assignment statement: txtFirstNo.ControlSource = dbInfo!E21. I have other text boxes whose control source set manually. They work perfectly fine. But this one gives me trouble. Any Idea why? Ömer Ayzan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compile Error: Wrong arguments or Invalid property | Excel Discussion (Misc queries) | |||
Runtime Error 380 – Could not set the list property. Invalid property value | Excel Programming | |||
Runtime error 380: Could not set the List property. invalid property value of listbox | Excel Programming | |||
Invalid Property Value Error | Excel Programming | |||
Runtime Error 381 Couldn't set list property, invalid array index | Excel Programming |