Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Deleting multiple Chart Tabs/sheets

Thanks Jon..........it looks so simple when you do it <g

Vaya con Dios,
Chuck, CABGx3


"Jon Peltier" wrote in message
...
If you're in a real hurry, this is quicker to type:

Application.DisplayAlerts = False
ActiveWorkbook.Charts.Delete
Application.DisplayAlerts = True

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


CLR wrote:

I tried to thank you earlier Shawn, but the system refused my

reply.......

Your code works FINE, exactly what I wanted..........(and in a hurry
too).....<g

Many many thanks,
Vaya con Dios,
Chuck, CABGx3




"Shawn O'Donnell" wrote:


"CLR" wrote:

I would like a macro to delete all Chart Tab/sheets, regardless of
their "Chart 22" or "Chart 12" numbers which Excel assigns them

Stand-alone chart sheets are kept in a collection called "Charts" that
belongs to Workbook objects like ActiveWorkbook. You can step through

the
collection and delete each sheet, if that's what you really want to

do...

Here's a no-going-back macro. If you want to at least think about each
sheet for a second, you can comment out the DisableAlert lines.

Sub deleteAllChartSheets()
Dim doomedChart As Variant
Application.DisplayAlerts = False
For Each doomedChart In ActiveWorkbook.Charts
doomedChart.Delete
Next doomedChart
Application.DisplayAlerts = True
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
Why do the tabs disappear (workbook has multiple sheets) Mel Excel Discussion (Misc queries) 1 January 20th 10 07:56 PM
Chart on multiple sheets acss Charts and Charting in Excel 1 October 29th 08 03:31 AM
Deleting Duplicate Records across multiple sheets saschmeling Excel Worksheet Functions 1 May 29th 08 03:55 PM
deleting columns on multiple sheets school counselor Excel Discussion (Misc queries) 4 May 25th 08 10:22 PM
building chart from multiple sheets Brad K. Charts and Charting in Excel 1 October 26th 07 02:04 PM


All times are GMT +1. The time now is 05:46 PM.

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

About Us

"It's about Microsoft Excel"