Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I share a workbook with several sheets and macros with my officemates. I have this macro so they cannot print any of the worksheets. Private Sub Workbook_BeforePrint(Cancel As Boolean) Cancel = True End Sub However, when I out of town, and the reports needs to be printed, I'd like to e-mail them another workbook to edit the macro above and replace it with the macro below. Private Sub Workbook_BeforePrint(Cancel As Boolean) If Date < VBA.DateSerial(2007, 8, 17) Then Cancel = True End If End Sub The original workbook VBA Project Password is "OPENPW". Both workbooks will have the same VBA Project Password. Thank you. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can macro edit text? | Excel Worksheet Functions | |||
I know you can't run a macro while in edit mode, but... | Excel Discussion (Misc queries) | |||
How do I edit this macro? | Excel Discussion (Misc queries) | |||
Edit Macro 1st time use | Excel Discussion (Misc queries) | |||
Macro to edit formula | Excel Discussion (Misc queries) |