Solved

Excel - Row Height +1 VBA

Posted on 2016-11-17
2
28 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
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.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
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.

910 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now