Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I created an application with several sheets: - Sheet1 is a form with a lot of dropdown lists. - Sheet2, named "Impression", is the document to be printed with all the values selected in Sheet1 Sheet 2 is hidden What I want to do is to capture the Print event, so that the VBA macro print the document in Sheet2, but nothing else. In fact, my macro prints both sheets... Private Sub Workbook_BeforePrint(Cancel As Boolean) Worksheets("Impression").PageSetup.PrintArea = "$A$1:$H$49" Worksheets("Impression").PrintOut Copies:=1, Collate:=True Cancel = False End Sub If I set Cancel = True, nothing is printed ! How can I do that ? Thanks for your help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
capture link update event | Excel Programming | |||
Stop Capture Event | Excel Programming | |||
Any way to capture an Autofilter event? | Excel Programming | |||
capture right mouse button click event on cell | Excel Programming | |||
Capture scrolling event | Excel Programming |