ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   counting charts (https://www.excelbanter.com/charts-charting-excel/38119-counting-charts.html)

dstiefe

counting charts
 
I am trying to write the code that counts the charts (embedded charts) on a
worksheet.

thank you

optionbase1


use the

for n = 1 to worksheets.count
numberOfCharts = numberOfCharts + worksheets(n).charts.count
next n


(check my syntax ...)


--
optionbase1
------------------------------------------------------------------------
optionbase1's Profile: http://www.excelforum.com/member.php...o&userid=25212
View this thread: http://www.excelforum.com/showthread...hreadid=391999


Jon Peltier

Worksheets("Sheet1").ChartObjects.Count

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


dstiefe wrote:
I am trying to write the code that counts the charts (embedded charts) on a
worksheet.

thank you


dstiefe

Thank you!!

"Jon Peltier" wrote:

Worksheets("Sheet1").ChartObjects.Count

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


dstiefe wrote:
I am trying to write the code that counts the charts (embedded charts) on a
worksheet.

thank you



dstiefe

Thank you!!

"optionbase1" wrote:


use the

for n = 1 to worksheets.count
numberOfCharts = numberOfCharts + worksheets(n).charts.count
next n


(check my syntax ...)


--
optionbase1
------------------------------------------------------------------------
optionbase1's Profile: http://www.excelforum.com/member.php...o&userid=25212
View this thread: http://www.excelforum.com/showthread...hreadid=391999




All times are GMT +1. The time now is 01:20 PM.

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