print only certain sheets

  • Thread starter Thread starter Louis
  • Start date Start date
L

Louis

I want to print only the sheets that return a "Payment
Required" in cell L12.

Is there a way to do this?

Thanks

Louis
 
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
 
-----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


--
Regards
Frank Kabel
Frankfurt, Germany

.
I'm sorry....I'm not familiar w/ using macros.

Louis
 
Hi Frank

Glad that I am not the only one that make mistakes <g>

Have a nice day
 

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