Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Looping Through Charts

Chris, Thanks for your reply. It runs the code but still
does not cycle through the different chart sheets. Any
thoughts?
-----Original Message-----
it should actually be :
Dim wks As Chart '<< singular
For Each wks In ActiveWorkbook.Charts
........

----- JD wrote: -----

This is the code I tried and failed.


Sub Add()
'Dim ii As Integer


Dim wks As Charts
For Each wks In ActiveWorkbook.Charts
Call ChartsToLine
Next
End Sub
.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Looping Through Charts

Sub Add()
'Dim ii As Integer


Dim wks As Charts
For Each wks In ActiveWorkbook.Charts
wks.Activate
Call ChartsToLine
Next
End Sub
End Sub

will give you the visual appeal of cycling throught the charts and probably
cause your sub to work.

--
Regards,
Tom Ogilvy


wrote in message
...
Chris, Thanks for your reply. It runs the code but still
does not cycle through the different chart sheets. Any
thoughts?
-----Original Message-----
it should actually be :
Dim wks As Chart '<< singular
For Each wks In ActiveWorkbook.Charts
........

----- JD wrote: -----

This is the code I tried and failed.


Sub Add()
'Dim ii As Integer


Dim wks As Charts
For Each wks In ActiveWorkbook.Charts
Call ChartsToLine
Next
End Sub
.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not Looping Roger Excel Discussion (Misc queries) 0 February 26th 08 05:18 PM
Looping David T Excel Discussion (Misc queries) 2 August 30th 06 10:51 PM
Looping Andrew Clark[_2_] Excel Programming 1 December 20th 03 05:01 PM
Looping Stuart[_9_] Excel Programming 0 October 29th 03 11:31 PM
Need Looping Help [email protected] Excel Programming 2 October 29th 03 08:11 PM


All times are GMT +1. The time now is 11:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"