Using IF in a macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a macro that prints out several pages at the end of the work week, I
now need to know if there is a way to print a page with the weekly paperwork
only if it has a value in a specific field. Any ideas?
 
If Range("N1").Value = "Yes" Then

Range("A1:N20").PrintOut

End If
 
With Activesheet
If .Range("A1").Value = 1 Then
.Prin tout
End If
End WIth
 

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