PC Review


Reply
Thread Tools Rate Thread

Could not set the ControlSource property. Invalid property value error

 
 
=?iso-8859-9?Q?=D6mer_Ayzan?=
Guest
Posts: n/a
 
      31st Oct 2006
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 With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      31st Oct 2006
Try :
txtFirstNo.ControlSource = Worksheets("dbInfo").Range("E21").address
as ControlSource requires a string.

NickHK

"Ömer Ayzan" <(E-Mail Removed)> wrote in message
news:e4y70ZL$(E-Mail Removed)...
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 With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      31st Oct 2006
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" <(E-Mail Removed)> wrote in message
news:eJoQ4dL$(E-Mail Removed)...
> Try :
> txtFirstNo.ControlSource = Worksheets("dbInfo").Range("E21").address
> as ControlSource requires a string.
>
> NickHK
>
> "Ömer Ayzan" <(E-Mail Removed)> wrote in message
> news:e4y70ZL$(E-Mail Removed)...
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - Easy one - ControlSource Property Invalid Bull Microsoft Excel Programming 1 1st Jun 2009 04:51 PM
Error Could not set the ControlSource property. Invalid property v =?Utf-8?B?VHJlZm9y?= Microsoft Excel Programming 2 28th Oct 2007 04:23 PM
ControlSource and Localization Issue?? (run-time error '380' Could not set the ControlSource property) TCook Microsoft Excel Programming 1 4th Mar 2007 08:12 AM
Runtime error 380 - Could not set the list property. Invalid property value. viktorka.mail@gmail.com Microsoft Excel Programming 3 27th Feb 2007 06:35 AM
Runtime error 380: Could not set the List property. invalid property value of listbox jasgrand Microsoft Excel Programming 0 6th Oct 2004 09:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:02 AM.