Printing

  • Thread starter Thread starter John
  • Start date Start date
J

John

Good afternoon

Does Excel 2000 have an On Print event. I have a worksheet that i want to
hide a couple of columns before printing the unhide them after, can anyone
help?

Thanks in anticipation
 
John,

Private Sub Workbook_BeforePrint(Cancel As Boolean)

End Sub

It's in module ThisWorkbook. In the VBE, open the code window for the
ThisWorkbook module (double-click it in the Project Explorer). Once in that
module, set the object (left) box to Workbook. Now the Procedure box
(right) will contain workbook events. Open it and select BeforePrint.
It'll put the event sub above in the module. Put your code in there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top