Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following macro in Excel 2003:
Private Sub workbook_BeforePrint(Cancel As Boolean) Cancel = True End Sub The aim is to prevent printing. It does not seem to do anything but I don't know why. Can anyone help? Thanks Dave |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have events been disabled - or macros disabled.
-- regards, Tom Ogilvy "Dave Shaw" wrote: I have the following macro in Excel 2003: Private Sub workbook_BeforePrint(Cancel As Boolean) Cancel = True End Sub The aim is to prevent printing. It does not seem to do anything but I don't know why. Can anyone help? Thanks Dave |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Macros are enabled and I think events are enabled:
Med = Application.EnableEvents results in True. "Tom Ogilvy" wrote: Have events been disabled - or macros disabled. -- regards, Tom Ogilvy "Dave Shaw" wrote: I have the following macro in Excel 2003: Private Sub workbook_BeforePrint(Cancel As Boolean) Cancel = True End Sub The aim is to prevent printing. It does not seem to do anything but I don't know why. Can anyone help? Thanks Dave |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If events work and macros are enabled bad that code is in the ThisWorkbook
module, I would expect that to block the printing of information in the sheets of that workbook. -- Regards, Tom Ogilvy "Dave Shaw" wrote: Macros are enabled and I think events are enabled: Med = Application.EnableEvents results in True. "Tom Ogilvy" wrote: Have events been disabled - or macros disabled. -- regards, Tom Ogilvy "Dave Shaw" wrote: I have the following macro in Excel 2003: Private Sub workbook_BeforePrint(Cancel As Boolean) Cancel = True End Sub The aim is to prevent printing. It does not seem to do anything but I don't know why. Can anyone help? Thanks Dave |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
BeforePrint Event - "PrintOut" does not give Print Dialog | Excel Programming | |||
printing macro,want to use beforeprint event? | Excel Programming | |||
Execute code after printing with the BeforePrint event | Excel Programming | |||
BeforePrint Event | Excel Programming | |||
BeforePrint event | Excel Programming |