RowHeight Macro

  • Thread starter Thread starter cdegar01
  • Start date Start date
C

cdegar01

Hello all, I am trying to write a macro that would set the row heigh
for every 66th row to 18.75. Any help would be appreciated, thanks
 
Try something like


Dim RowNdx As Long
Dim LastRow As Long
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
For RowNdx = 1 To LastRow Step 66
Rows(RowNdx).RowHeight = 18.75
Next RowNdx


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

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