ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Determing Last Row (https://www.excelbanter.com/excel-programming/356639-determing-last-row.html)

gti_jobert[_69_]

Determing Last Row
 

Hi all,

Is there a way to determine the last row where a chart object finishes
As I am trying to set a dynamic printing area and my chart change
height dependant on the data criteria.

TI

--
gti_jober
-----------------------------------------------------------------------
gti_jobert's Profile: http://www.excelforum.com/member.php...fo&userid=3063
View this thread: http://www.excelforum.com/showthread.php?threadid=52476


Tom Ogilvy

Determing Last Row
 
set rng = activesheet.ChartObjects(1).BottomRightCell
msgbox rng.row

--
Regards,
Tom Ogilvy



"gti_jobert" wrote:


Hi all,

Is there a way to determine the last row where a chart object finishes?
As I am trying to set a dynamic printing area and my chart changes
height dependant on the data criteria.

TIA


--
gti_jobert
------------------------------------------------------------------------
gti_jobert's Profile: http://www.excelforum.com/member.php...o&userid=30634
View this thread: http://www.excelforum.com/showthread...hreadid=524768



gti_jobert[_70_]

Determing Last Row
 

Thanks Tom........works perfectly

--
gti_jober
-----------------------------------------------------------------------
gti_jobert's Profile: http://www.excelforum.com/member.php...fo&userid=3063
View this thread: http://www.excelforum.com/showthread.php?threadid=52476



All times are GMT +1. The time now is 12:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com