Solved

Excel - Row Height +1 VBA

Posted on 2016-11-17
2
43 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

724 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