B
Brian
My com-addin for word adds couple of command buttons and menu options to word
the buttons are for convenience as they just duplicate menus actions. Here is the code snippet
Public WithEvents cmdVPTrans As Office.CommandBarButto
Public WithEvents mnuVPTrans As Office.CommandBarButto
...
...
Private Sub cmdVPTrans_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean
mnuVPTrans_Click Ctrl, CancelDefaul
Exit Su
End Su
Private Sub mnuVPTrans_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean
..
....
End su
Everything seems to work fine when I set Regional and Language options to English. But when I set it to some other language then pressing a command button also invokes the menu option as well, and the other way around, so effectively, on one click the function gets executed twice. The only difference between English and other language is that English strings are stored in VB resource file while other languages use a separate resource DLL. Anybody has seen this behavior
the buttons are for convenience as they just duplicate menus actions. Here is the code snippet
Public WithEvents cmdVPTrans As Office.CommandBarButto
Public WithEvents mnuVPTrans As Office.CommandBarButto
...
...
Private Sub cmdVPTrans_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean
mnuVPTrans_Click Ctrl, CancelDefaul
Exit Su
End Su
Private Sub mnuVPTrans_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean
..
....
End su
Everything seems to work fine when I set Regional and Language options to English. But when I set it to some other language then pressing a command button also invokes the menu option as well, and the other way around, so effectively, on one click the function gets executed twice. The only difference between English and other language is that English strings are stored in VB resource file while other languages use a separate resource DLL. Anybody has seen this behavior