G
Gareth
I have a file which will be used in all versions of Excel >= '97
I need to hide or disable all print options that the user has (there is a
custom menu with print options which do specific things).
I put the file together in '97 and it works OK with the following but when I
try it on 2000 it hides the wrong icon on the Standard toolbar and the wrong
option in the File menu.
Option Explicit
Private Sub Workbook_Activate()
Application.CommandBars("Standard").Controls(4).Delete
Application.CommandBars("File").Controls(10).Delete
End Sub
Private Sub Workbook_Deactivate()
Application.CommandBars("Standard").Reset
Application.CommandBars("File").Reset
End Sub
Is there any way to hide or disable print options in all versions with the
same line of code?
Gareth
I need to hide or disable all print options that the user has (there is a
custom menu with print options which do specific things).
I put the file together in '97 and it works OK with the following but when I
try it on 2000 it hides the wrong icon on the Standard toolbar and the wrong
option in the File menu.
Option Explicit
Private Sub Workbook_Activate()
Application.CommandBars("Standard").Controls(4).Delete
Application.CommandBars("File").Controls(10).Delete
End Sub
Private Sub Workbook_Deactivate()
Application.CommandBars("Standard").Reset
Application.CommandBars("File").Reset
End Sub
Is there any way to hide or disable print options in all versions with the
same line of code?
Gareth