Drmwvr7266
Board Regular
- Joined
- Apr 7, 2002
- Messages
- 164
I have used this code to reset Excel after using a program. However, I cannot reset the caption on the print button. Initially, the button was disabled and the caption changed to "Print option diasbled". Now I can't reset it to the default. I have tried "" and also "Print". But because of multiple printers, it's impossible to tell which printer is being used with a false caption being displayed.
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Call DeleteMenu
' Closes menu in this program
Application.CommandBars("Standard").Controls(6).Enabled = True
Application.CommandBars("Standard").Controls(6).Caption = ""
End Sub
Does anyone know the default? When I shut down excel and restart it, it defaults to what it should say: PRINT (Deskjet895). Suggestions?
Another quick question: Using the above code, where or how would I limit the effects to THISWORKBOOK?
This message was edited by Drmwvr7266 on 2002-08-26 08:20
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Call DeleteMenu
' Closes menu in this program
Application.CommandBars("Standard").Controls(6).Enabled = True
Application.CommandBars("Standard").Controls(6).Caption = ""
End Sub
Does anyone know the default? When I shut down excel and restart it, it defaults to what it should say: PRINT (Deskjet895). Suggestions?
Another quick question: Using the above code, where or how would I limit the effects to THISWORKBOOK?
This message was edited by Drmwvr7266 on 2002-08-26 08:20