set up print prefs in vba screen

F

FennisDuck

vba project window
under heading VBA Project (Workbook.xls)
open folder Microsoft Excel Objects
I am given a list of worksheets & their given Names

which sheet I click on its open to a input window that is divided into three
sections
one section with drop down shows either Worksheet or (General)
the section opposite will show a list of `functions`
the large window below is the code input window
(sorry if this is boring but I want explain what I am looking at)

What I would like to do is use a Print command, for when I print that
particular worksheet i need it to perform a particular function before
actually printing

(I have already used the open and close Private sub - but is there one for
printing)

Thank you in advance for any help or assistance given
Thanx
 
D

Dave Peterson

There's a Workbook_beforeprint event under the ThisWorkbook module.

This event fires whenever the user prints (or print previews).

Maybe you can tie into that.
 
F

FennisDuck

thank you very much, I had used it before but my memory was, opps sory IS
failing me most days
but that is def what I was looking for
 
Top