Using different print code

M

Mark

I've got a file in excel 97 that I need people to print
out using a different print macro that I created
otherwise, the form won't print correctly.

What I'd like to be able to do is disable the print
button on the standard toolbar and the "Print..." option
from the FILE menu.

This way, they would have no other choice but to use my
own macro to print.

But, I want to disable these two things only for this one
particular file, not as a global setting.

Any takers?

Any help would be greatly appreciated.

Thanks

Mark
 
D

DSC

Hi Mark

I don't Know how to remove them but if you only want printing from you
own macro.

You could investigate the Event

Private Sub Workbook_BeforePrint(Cancel As Boolean)

End Sub

If you set the Argument Cancel = True then Excel won't Print.
You could set up a Public Variable such that only when your macro run
when this Event triggers it wont halt your printing.

HTH

Davi
 

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

Top