Do not print

B

Breck

I have a 7 sheet workbook. I would like not to print a
worksheet if a specific cell is blank. How can this be
accomplished?
 
R

Ron de Bruin

Try this macro Breck

Sub test()
Dim sh As Worksheet
For Each sh In ThisWorkbook.Worksheets
If sh.Range("a1").Value <> "" Then sh.PrintOut
Next
End Sub
 

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

Top