WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

deactivate printing

 
   Home -> Office -> Printing RSS
Next:  Excel 2007 Error Reports when updating charts  
Author Message
Smulli

External


Since: Jun 11, 2008
Posts: 1



(Msg. 1) Posted: Wed Jun 11, 2008 1:28 pm
Post subject: deactivate printing
Archived from groups: microsoft>public>excel>printing (more info?)

How can prefent a document to be printed when specific cells are not filled?
Back to top
Login to vote
Gord Dibben

External


Since: Feb 23, 2004
Posts: 16344



(Msg. 2) Posted: Wed Jun 11, 2008 8:55 pm
Post subject: Re: deactivate printing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Add some event code to Thisworkbook.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
If Application.CountA(Sheets("Sheet1").Range("A1:C1")) < 3 Then
Cancel = True
MsgBox "Please fill required cells, print has been cancelled"
End If
End Sub


Gord Dibben MS Excel MVP

On Wed, 11 Jun 2008 13:28:01 -0700, Smulli <Smulli.RemoveThis@discussions.microsoft.com>
wrote:

>How can prefent a document to be printed when specific cells are not filled?
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Printing All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET