ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ControlSource and Localization Issue?? (run-time error '380' Could not set the ControlSource property) (https://www.excelbanter.com/excel-programming/384452-controlsource-localization-issue-run-time-error-380-could-not-set-controlsource-property.html)

TCook

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



Herbert Taferner

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




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com