PC Review


Reply
Thread Tools Rate Thread

2007: Disable printing but still able to view Print Preview

 
 
Aaron
Guest
Posts: n/a
 
      2nd Apr 2009
Hello,

I am trying to disable all printing when a specific cell on a worksheet is
blank. Meaning there is no way a user can print anything from the worksheet
until the cell has been filled. Also, I need to be able to view the print
preview screen of the sheet....just not be able to actually print the sheet.

Any code samples or examples would be both appreciated and helpful. This
example needs to work for Excel 2007. Working for any other versions is not
mandatory but it is a bonus.

Thanks for the help in advance,
Aaron

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      2nd Apr 2009
I don't think you can do it. The workbook event that you'd want to use is
workbook_beforeprint, but it can't tell the difference between printing and
previewing.


Aaron wrote:
>
> Hello,
>
> I am trying to disable all printing when a specific cell on a worksheet is
> blank. Meaning there is no way a user can print anything from the worksheet
> until the cell has been filled. Also, I need to be able to view the print
> preview screen of the sheet....just not be able to actually print the sheet.
>
> Any code samples or examples would be both appreciated and helpful. This
> example needs to work for Excel 2007. Working for any other versions is not
> mandatory but it is a bonus.
>
> Thanks for the help in advance,
> Aaron


--

Dave Peterson
 
Reply With Quote
 
Homey
Guest
Posts: n/a
 
      2nd Apr 2009
Also no way to stop print button in preview i think

"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
|I don't think you can do it. The workbook event that you'd want to use is
| workbook_beforeprint, but it can't tell the difference between printing
and
| previewing.
|
|
| Aaron wrote:
| >
| > Hello,
| >
| > I am trying to disable all printing when a specific cell on a worksheet
is
| > blank. Meaning there is no way a user can print anything from the
worksheet
| > until the cell has been filled. Also, I need to be able to view the
print
| > preview screen of the sheet....just not be able to actually print the
sheet.
| >
| > Any code samples or examples would be both appreciated and helpful. This
| > example needs to work for Excel 2007. Working for any other versions is
not
| > mandatory but it is a bonus.
| >
| > Thanks for the help in advance,
| > Aaron
|
| --
|
| Dave Peterson

 
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
Stop print preview when printing report Access 2007 Sarella Microsoft Access Reports 4 13th Jan 2010 09:22 PM
Print preview locks up, but Report view works (2007) Dale Fye Microsoft Access Reports 2 1st Oct 2008 12:36 AM
View Multiple Pages 2007 (Print Preview) Summer Microsoft Word Document Management 1 6th Sep 2007 03:16 PM
Detecting report view mode (Print Preview vs Printing) =?Utf-8?B?YWdvZGZyaWVk?= Microsoft Access Reports 3 12th Apr 2005 12:55 AM
View Print Preview automatically before printing =?Utf-8?B?R2Vvcmdl?= Windows XP General 2 9th Feb 2005 04:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:07 PM.