Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.de.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default ControlSource and Localization Issue?? (run-time error '380' Could not set the ControlSource property)

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


  #2   Report Post  
Posted to microsoft.public.de.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ControlSource and Localization Issue?? (run-time error '380' Could not set the ControlSource property)

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
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
ControlSource Property Throwing Errors After Changing Regional Settings TCook Excel Programming 2 January 18th 07 07:01 PM
Run time Error 380. Could not set the ControlSource property Ömer Ayzan Excel Programming 2 November 3rd 06 03:56 PM
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
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 10:31 AM.

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

About Us

"It's about Microsoft Excel"