Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using Excel 97.
I have written some templates in excel. Because of their layout, if the normal print options are used they don't print how I want them so I have recorded some code so they do print how I want them. Can someone provide me with some code which disables the PRINT & PRINT PREVIEW in the FILE menu options, disables the print button on the STANDARD toolbar. I don't know whether I am asking too much but to replace the print button on the standard toolbar with a button which runs my recorded print code. But of course on closing the excel spreadsheet resets everything! Any help would be greatly appreciated. Mark |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can disable the menu options: but this interferes with the user interface somewhat
Why not use the event Sub Workbook_BeforePrint(Cancel As Boolean Cancel = True ' Cancels printin Your macr End Sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Since your printing routine will raise this event this event too, this solution will not be viable! Sorry.
|
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not if his code disables events, prints, enables events.
-- Regards, Tom Ogilvy "AA2e72E" wrote in message ... Since your printing routine will raise this event this event too, this solution will not be viable! Sorry. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Disabling Excel 2000 worksheet printing | Excel Worksheet Functions | |||
Disabling macros | Excel Discussion (Misc queries) | |||
Disabling updatelinks | Excel Discussion (Misc queries) | |||
disabling CUT function | Excel Discussion (Misc queries) | |||
disabling shorcuts | Excel Programming |