Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Run time Error 380. Could not set the ControlSource property

Dear friends,

The following code seems perfectly normal to me and works fine when I start
the excel first time. However after couple of trial with the code I
sometimes get the following Error.

Quote
Run time Error 380
Could not set the ControlSource property. Invalid property value.
Unquote



With frmFilters
.txtFirstNo.ControlSource = "[" & nameofWB & "]Info!E21"
...
End With

Any idea why.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Run time Error 380. Could not set the ControlSource property

Possibly nameofWB has lost its value.

less likely, sheet info no longer exists

--
Regards,
Tom Ogilvy

"Ömer Ayzan" wrote:

Dear friends,

The following code seems perfectly normal to me and works fine when I start
the excel first time. However after couple of trial with the code I
sometimes get the following Error.

Quote
Run time Error 380
Could not set the ControlSource property. Invalid property value.
Unquote



With frmFilters
.txtFirstNo.ControlSource = "[" & nameofWB & "]Info!E21"
...
End With

Any idea why.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Run time Error 380. Could not set the ControlSource property

Hello Tom,
It shold have been sth. else neither nameofwb nor sheet info is the cause.
Because if I stop the program and try to set the property manually via its
properties I get the same message. On msdn I could not find much info about
err 380. I think I get this one if an error happens somewhere else
and I stop the prg and restart it. Because when I close excel (2003) and
reopen it, just works fine. But it is annoying not to know when will it
happen.
Ömer
"Tom Ogilvy" wrote in message
...
Possibly nameofWB has lost its value.

less likely, sheet info no longer exists

--
Regards,
Tom Ogilvy

"Ömer Ayzan" wrote:

Dear friends,

The following code seems perfectly normal to me and works fine when I
start
the excel first time. However after couple of trial with the code I
sometimes get the following Error.

Quote
Run time Error 380
Could not set the ControlSource property. Invalid property value.
Unquote



With frmFilters
.txtFirstNo.ControlSource = "[" & nameofWB & "]Info!E21"
...
End With

Any idea why.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not set the ControlSource property. Invalid property value error Ömer Ayzan Excel Programming 2 October 31st 06 09:15 AM
Syntax for TextBox ControlSource Property to another worksheet jam9663 Excel Programming 2 October 7th 06 11:45 AM
Run Time Error 438 - Object doesn't support the property or method Paul Cottier Excel Programming 0 September 10th 04 01:27 AM
Run-time Error '1004' Unable to get the findnext property... Tom Ogilvy Excel Programming 0 July 12th 04 04:27 PM
Textbox ControlSource Property - Excel 97 Tom Ogilvy Excel Programming 0 June 17th 04 09:45 PM


All times are GMT +1. The time now is 03:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"