Jump to content

Recommended Posts

Posted

Hi

I have an Excel worksheet that I want to disable printing on. I have tired the following macro but still prints :(

 

Private Sub Workbook_BeforePrint(Cancel As Boolean)

Cancel = True

End Sub

 

Posted

Where did you add the macro? If it's not added to the workbook module it wouldn't actually get called by default. (And obviously if the excel file is opened without macro's it won't work either)

 

Steve

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...