PC Review


Reply
Thread Tools Rate Thread

Disabling normal printing

 
 
Mark
Guest
Posts: n/a
 
      28th Apr 2004
I am using Excel 97.

I have written some templates in excel.

Because of their layout, if the normal print options are
used they don't print how I want them so I have recorded
some code so they do print how I want them.

Can someone provide me with some code which disables the
PRINT & PRINT PREVIEW in the FILE menu options, disables
the print button on the STANDARD toolbar.

I don't know whether I am asking too much but to replace
the print button on the standard toolbar with a button
which runs my recorded print code.

But of course on closing the excel spreadsheet resets
everything!

Any help would be greatly appreciated.


Mark
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QUEyZTcyRQ==?=
Guest
Posts: n/a
 
      28th Apr 2004
You can disable the menu options: but this interferes with the user interface somewhat

Why not use the event

Sub Workbook_BeforePrint(Cancel As Boolean
Cancel = True ' Cancels printin
Your macr
End Sub
 
Reply With Quote
 
=?Utf-8?B?QUEyZTcyRQ==?=
Guest
Posts: n/a
 
      28th Apr 2004
Since your printing routine will raise this event this event too, this solution will not be viable! Sorry.
 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      28th Apr 2004
Not if his code disables events, prints, enables events.

--
Regards,
Tom Ogilvy

"AA2e72E" <(E-Mail Removed)> wrote in message
news:37BACC1C-530A-46A8-AFCB-(E-Mail Removed)...
> Since your printing routine will raise this event this event too, this

solution will not be viable! Sorry.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
disabling of date printing =?Utf-8?B?aG12ZXJtYQ==?= Microsoft Outlook BCM 0 30th May 2007 02:29 PM
Printing on Dell inkjet in NORMAL shrinks printout to 25% normal! =?Utf-8?B?TWFjIE1jQ2FydGh5?= Microsoft Word Document Management 7 19th Sep 2006 04:41 PM
Is this normal? Emails cannot be sent without disabling Norton email scanning ambermcenturff.crosstimbersarch@verizon.net Anti-Virus 9 25th Jul 2006 06:41 AM
disabling printing fields Juuljus Microsoft Excel Programming 1 11th Apr 2006 01:30 PM
Disabling Printing Status Box Lee Buckman Microsoft Access Reports 0 12th Dec 2003 09:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:31 PM.