Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Not Looping | Excel Discussion (Misc queries) | |||
Looping | Excel Discussion (Misc queries) | |||
Looping | Excel Programming | |||
Looping | Excel Programming | |||
Need Looping Help | Excel Programming |