printing alternating gray and white background

  • Thread starter Thread starter K. Georgiadis
  • Start date Start date
K

K. Georgiadis

I saw the VBA code for this a while ago but I can no
longer remember where;

I want to print an Excel worksheet with each row having
alternating white and light gray background. Can someone
help me, please?
 
try this. Adjust to suit

Sub colorrow()
For i = 1 To 300 Step 2
Rows(i).Interior.ColorIndex = 15
Next i
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

Back
Top