sub conditional_print()
dim wks as worksheet
for each wks in activeworkbook.worksheets
if wks.range("L12").value = "Payment Required" then
wks.printout
end if
next
end sub
-----Original Message-----
Hi Louis
try the following
sub conditional_print()
dim wks as worksheet
for each wks in activeworkbook.worksheets
if wks.range("L12").value = "Payment Required" then
wks.printout
end if
next
end sub
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.