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

T

TCook

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
 
H

Herbert Taferner

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top