R
Renato
I have the following code on a worksheet:
Sub AddNewMenu()
Dim HelpIndex As Integer
Dim NewMenu As CommandBarPopup
' Get Index of Help menu
HelpIndex = CommandBars(1).Controls("Help").Index
' Create the control
Set NewMenu = CommandBars(1) _
.Controls.Add(Type:=msoControlPopup, _
Before:=HelpIndex, Temporary:=True)
' Add a caption
NewMenu.Caption = "&Michigan"
End Sub
I never had problems with it until recently. I run vista with office 2007.
Everytime I save a file with the code the other person opening it gets an
error (Compile Error in Module 1). The file is saved as 97-2003. We have
not issues with 2007 Excles only with previous versions of excel. It seems
like it can't run that code at all. So any suggestions would be aprreciated.
Renato
Sub AddNewMenu()
Dim HelpIndex As Integer
Dim NewMenu As CommandBarPopup
' Get Index of Help menu
HelpIndex = CommandBars(1).Controls("Help").Index
' Create the control
Set NewMenu = CommandBars(1) _
.Controls.Add(Type:=msoControlPopup, _
Before:=HelpIndex, Temporary:=True)
' Add a caption
NewMenu.Caption = "&Michigan"
End Sub
I never had problems with it until recently. I run vista with office 2007.
Everytime I save a file with the code the other person opening it gets an
error (Compile Error in Module 1). The file is saved as 97-2003. We have
not issues with 2007 Excles only with previous versions of excel. It seems
like it can't run that code at all. So any suggestions would be aprreciated.
Renato