Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd like to change a chart setting for every chart (both chart sheets
and charts embedded in worksheets) in a workbook. I modified the below code from Tom Ogilvy (thanks!), but I get an error when I try to modify the chart settings with "cht.PlotVisibleOnly = False". If I change "cht" to type Chart instead of type Object, the line would work, but then I get a type mismatch error at "For Each cht In sh.ChartObjects". Any ideas? Thanks! Sub tester1() Dim cht As Object, sh as Worksheet For Each sh In ThisWorkbook.Worksheets If sh.ChartObjects.Count 0 Then sh.Activate For Each cht In sh.ChartObjects cht.Select cht.PlotVisibleOnly = False Next End If Next For Each cht In ThisWorkbook.Charts cht.Activate cht.PlotVisibleOnly = False Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Embedded Chart Versus Chart - ShowDetail Issue | Charts and Charting in Excel | |||
what is the difference between embedded chart and chart-in-a-sheet | Excel Programming | |||
How to make chart embedded in active sheet? | Excel Programming | |||
Embedded Chart in Excel Sheet | Charts and Charting in Excel | |||
How to find a Chart embedded in a Sheet? | Excel Programming |