Excel: Increase Cell Height By Altering Cell Value

Hello,

I would like to be able to alter the height of three given rows in Excel. See the attached spreadsheet

A user would alter the orange values and the corresponding coloured row(s) would increase or decrease in height.

What's the best way of doing this?

Thanks,
Increase-Cell-Height.xlsx
LVL 1
dabug80Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
Hi,

In sheet1 insert this code the height should be points (standard 12.75)

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("7:7").RowHeight = Range("C3")
Range("10:10").RowHeight = Range("C4")
Range("13:13").RowHeight = Range("C5")
End Sub


Regards
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob HensonFinance AnalystCommented:
Probably worth adding a check that it is one of the cells in the range C3:C5 that have changed otherwise every change will trigger the macro.

Thanks
Rob H
0
Rgonzo1971Commented:
just what I thought

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not (Intersect(Target, Range("C3:C5")) Is Nothing) Then
    Range("7:7").RowHeight = Range("C3")
    Range("10:10").RowHeight = Range("C4")
    Range("13:13").RowHeight = Range("C5")
End If
End Sub
0
dabug80Author Commented:
Thanks for also supplying the standard value
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.