View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
EBenson EBenson is offline
external usenet poster
 
Posts: 4
Default culture mismatch with Button name and get_Caller


Running in Excel 2007 with culture zh-Ch.

I create an Excel button from my COM C# add-in using _combo =
worksheet.Shapes.AddFormControl(Excel.XlFormContro l.xlButtonControl, 0, 0, 0,
0);

This defaults to an English string name "Button 1".

When this button is clicked. It runs an action that is in a .xla Within this
..xla application.Caller is a string that is the Chinese equivalent to "Button
1".

The xla calls back into the C# add-in and using the Excel applications
object I call get_Caller(System.Missing). This also returns the button name
in Chinese.

How can I ensure these are in a consistent culture?

--
EB