Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Application Events / App_WorkbookOpen
Hello all,
What I´m trying to do: Everytime I open an existing Workbook I want the PrintSettings for all the sheets to be Draft. I cannot do this in the printersettings directly because of restrictions. What I came up with so far: In my Personal.xls I did the following: - I created a new class module: Class1 - I wrote in Class1: Public WithEvents App As Application - I wrote in Class1: Private Sub App_WorkbookOpen(ByVal WB As Excel.Workbook) Dim page As Worksheet For Each page In Worksheets page.PageSetup.Draft = True Next page End Sub This doesn´t do the trick... can anyone tell me why not? thanks Fries |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Application Level Events Question | Excel Programming | |||
Application level events no longer execute | Excel Programming | |||
Just having App_WorkbookOpen crashes Excel | Excel Programming | |||
Using Application Events | Excel Programming | |||
How-To - Forwarding Excel 2000 events to .Net application | Excel Programming |