how to automatic print a worksheet when a cell condition occurs.

  • Thread starter Thread starter machete
  • Start date Start date
M

machete

I'm trying to automate a worksheet to automatically print a workshee
when a cell reach a condition. I create a warning screen and I need t
print it when a cell is one day before the due date.:
 
Whatever code puts up the warning message should also print out the sheet.
 
The cell contains a date I need that 1 day before it reach the dat
value in the cell it prints automaticaly a warning page I create,
used this to manage my calibrations due dates
 
Hi

If you open the workbook every day you can use this
event in the thisworkbook module

A1= the date in "Sheet1"

Private Sub Workbook_Open()
If Sheets("Sheet1").Range("A1").Value = Date - 1 Then
Sheets("warning").PrintOut
End If
End Sub
 
this is the situation, the file needs to be open all the time, thi
means that I need the warning to happens when the date - 1 occur
automaticall
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top