set up print prefs in vba screen

  • Thread starter Thread starter FennisDuck
  • Start date Start date
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
 
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.
 
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
 

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