Solved

Excel - Row Height +1 VBA

Posted on 2016-11-17
2
29 Views
Last Modified: 2016-11-21
Hi Experts,
I need VBA to increase all rows in my table by  +3

>>>>> This is my table
   >>>>>>>>>>>      Range("Table1").Select

All the rows are not the same height, but I want them all to increase by a set value.
And after I print the sheet, I will select all the same rows again and decrease them all by the same amount.

Thanks so much
Chris
0
Comment
Question by:chris pike
2 Comments
 
LVL 27

Accepted Solution

by:
MacroShadow earned 500 total points
ID: 41892223
Try this
Sub Demo()
    Dim row As Range
    For Each row In Range("Table1").Rows
        row.RowHeight = row.RowHeight + 3
    Next row
End Sub

Open in new window

0
 

Author Closing Comment

by:chris pike
ID: 41895972
Awesome thanks
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question