needed row height

mjcapan

New Member
Joined
Feb 20, 2013
Messages
27
Hello all.
I am working on a macro which draws lines onto a sheet while populating cells. The lines positions are referenced to the center of the cells.

A problem I have encountered is that as data is populated into the cells the row height may be shifted to accommodate additional data. When this happens the line doesn't move which isn't an issue for that line but when I need to connect another line to it I don't have a way to reference its position.

The best possible solution I have come up with so far is to figure out how tall the cell used for the original reference needs to be relative to the data inside. My question then is does excel keep a value of necessary height for the data in a cell, perhaps as a member of the cells or range objects.
If not can I calculate that given the string length and column width.
 
They may change data in the table after the tree has been built. the intention is to then run the tree builder again and it will update. In my latest revision I have added a timestamp to each sheet to show when the macros were last ran.
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,216,460
Messages
6,130,765
Members
449,589
Latest member
Hana2911

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top