ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Modifying a Chart Object Name (https://www.excelbanter.com/excel-discussion-misc-queries/61430-modifying-chart-object-name.html)

pauloreiss

Modifying a Chart Object Name
 

Im making a MACRO to alter montly many different files with the same
paddern. In these files there are many sheets with a few Charts. Those
charts are two for INCOME and two for PROFIT in each sheet. My problem
is that the name of the Charts in the macro appear with the number that
Excel applyed to it and i would like to make standar names for each
Chart. This way there would be only 4 chart names for each sheet,
instead of 16 diferent chart names for the 4 sheets in the file im
working.
This is how the part of the macro looks:

- ActiveSheet.ChartObjects("Gráfico 8").Activate-
...

I would like to make "Gráfico 8" to be "Profit1"...

Anyone knows how to do this!???
Thanks...


--
pauloreiss
------------------------------------------------------------------------
pauloreiss's Profile: http://www.excelforum.com/member.php...o&userid=29820
View this thread: http://www.excelforum.com/showthread...hreadid=495254



All times are GMT +1. The time now is 09:28 PM.

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