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
 
Back
Top