D
David Cuthill
I cannot seem to be able to set the onaction property of the File >
Save item on the worksheet menubar using index numbers.
Application.CommandBars("File").Controls("Save").OnAction = "SaveFile"
works fine but if I want to do it as follows I get an error message
Application.CommandBars(1).Controls(3).OnAction = "SaveFile"
I am trying to use this method since using names for the controlbar
and controls causes a problem if the workbook is used on a spanish
version of excel.
Also, I seem to be also have a problem with the use of decimals
between english and spanish. In the spanish version the decimal is a
comma and my code interpretes 1.234 as 1,234 or a number one thousand
times greater than it is supposed to be. Is there a work around for
this issue?
David
Save item on the worksheet menubar using index numbers.
Application.CommandBars("File").Controls("Save").OnAction = "SaveFile"
works fine but if I want to do it as follows I get an error message
Application.CommandBars(1).Controls(3).OnAction = "SaveFile"
I am trying to use this method since using names for the controlbar
and controls causes a problem if the workbook is used on a spanish
version of excel.
Also, I seem to be also have a problem with the use of decimals
between english and spanish. In the spanish version the decimal is a
comma and my code interpretes 1.234 as 1,234 or a number one thousand
times greater than it is supposed to be. Is there a work around for
this issue?
David