Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default How to stop printing untill certain cells are filled in?

Is there any way to stop the people from printint untill they fill out cell
B14 with the time that the truck is leaving?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How to stop printing untill certain cells are filled in?

hi
something like this might work....
Private Sub Workbook_BeforePrint(Cancel As Boolean)
If Range("B14").Value = "" Then
Cancel = True
MsgBox "you must fill in B14 before printing"
End If
End Sub

this is ThisWorkbook code. to use...
press Alt+F11. in the project window(far left), expand your project(file).
then expand excel objects(if needed)
scroll down and double click ThisWorkbook.
in the code window(far right), select workbook from the upper right combo box.
paste the above code in.

Regards
FSt1


"Matt" wrote:

Is there any way to stop the people from printint untill they fill out cell
B14 with the time that the truck is leaving?

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
Stop user from saving workbook unless cell is filled in Churley Excel Discussion (Misc queries) 3 October 16th 08 04:44 PM
Filled cells dont appear as filled SMILLS Excel Discussion (Misc queries) 6 October 18th 07 05:28 PM
Percentage of filled cells Carla Bradley Excel Worksheet Functions 1 January 7th 05 05:31 PM
In Exel 2000, stop the blank cells (with formulas) from printing. tonyoc Excel Discussion (Misc queries) 1 December 10th 04 12:38 AM
How do I stop other circles in other cells to stop selecting? stauff Excel Worksheet Functions 2 October 29th 04 09:02 PM


All times are GMT +1. The time now is 01:31 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"