PC Review


Reply
Thread Tools Rate Thread

ControlSource and Localization Issue?? (run-time error '380' Could not set the ControlSource property)

 
 
TCook
Guest
Posts: n/a
 
      3rd Mar 2007
Hello All,

I am having a problem setting the ControlSource property on a ComboBox.

For example:

Type some text in a cell and select it.

Add a userform to a VBA project and add this code:


Private Sub UserForm_Initialize()
Me.ComboBox1.ControlSource = Selection.Address
End Sub


When my Regional Options are set to English (United States) the above code
runs fine. However, if I change my Regional Options to German (Germany) I
receive the following error:

ControlSource and Localization Issue?? (run-time error '380' Could not set
the ControlSource property)

Please advise.

Thanks,

TC


 
Reply With Quote
 
 
 
 
Herbert Taferner
Guest
Posts: n/a
 
      4th Mar 2007
Hallo TCook,

> I am having a problem setting the ControlSource property on a ComboBox.
> For example:
> Type some text in a cell and select it.
> Add a userform to a VBA project and add this code:
>
> Private Sub UserForm_Initialize()
> Me.ComboBox1.ControlSource = Selection.Address
> End Sub
>
> When my Regional Options are set to English (United States) the above code
> runs fine. However, if I change my Regional Options to German (Germany) I
> receive the following error:
>
> ControlSource and Localization Issue?? (run-time error '380' Could not set
> the ControlSource property)


hier spricht man Deutsch

bei mir läuft der Code unter WIN XP SP2 XL2003 DE
Einwandfrei ohne Fehlermeldung

mfg Herbert


 
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
Error Could not set the ControlSource property. Invalid property v =?Utf-8?B?VHJlZm9y?= Microsoft Excel Programming 2 28th Oct 2007 04:23 PM
Run time Error 380. Could not set the ControlSource property Ömer Ayzan Microsoft Excel Programming 2 3rd Nov 2006 03:56 PM
Could not set the ControlSource property. Invalid property value error =?iso-8859-9?Q?=D6mer_Ayzan?= Microsoft Excel Programming 2 31st Oct 2006 09:15 AM
Property ControlSource =?Utf-8?B?SmFuaXMgaW4gTWlubmVzb3Rh?= Microsoft Access Form Coding 7 3rd Apr 2006 08:52 PM
controlsource property =?Utf-8?B?QnJldA==?= Microsoft Access Form Coding 3 12th Nov 2005 09:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:08 AM.