View Single Post
  #1   Report Post  
Posted to microsoft.public.de.excel,microsoft.public.excel.programming
TCook TCook is offline
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