Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default prohibit printing based on input

Barb, see if this will work for you, put in the this workbook code

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim Cel As Range
'change your range here
For Each Cel In [b1:b6]
If IsEmpty(Cel) Then
Cel.Select
Cancel = True
MsgBox "Missing data", vbExclamation, "Can't Print Without All Data"
Exit Sub
End If
Next Cel

End Sub

--
Paul B
Always backup your data before trying something new
Using Excel 97 & 2000
Please post any response to the newsgroups so others can benefit from it
** remove news from my email address to reply by email **



"Barb" wrote in message
...
Is it possible to prohibit the printing of a form until
all required fields contain values?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to input pictures automatically based on cell input? bsharp Excel Worksheet Functions 9 May 30th 09 07:16 AM
run macro with input msg based on cell input Janelle S Excel Discussion (Misc queries) 0 January 20th 08 05:23 AM
Prohibit users from modifying Cath Excel Discussion (Misc queries) 2 July 21st 06 03:42 PM
Prohibit entry of special characters jen Excel Worksheet Functions 0 March 27th 06 12:51 AM
prohibit closing a workbook Christophero Excel Discussion (Misc queries) 2 April 4th 05 05:54 PM


All times are GMT +1. The time now is 06:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"