Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Printing Charts Macro Help

To all,

I have a workbook with a series of charts, each on their own worksheet.
Is there any way to easily just print all of the charts with the click
of a button using a Macro?

Thanks in advance,

Joseph Crabtree

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Printing Charts Macro Help

Do you mean that the charts are on worksheets or on Chart sheets?

I'm guessing ChartSheets:

Option Explicit
Sub testme()
Dim ChSht As Object
For Each ChSht In ActiveWorkbook.Sheets
If TypeName(ChSht) = "Chart" Then
ChSht.PrintOut preview:=True
End If
Next ChSht
End Sub

If you really meant worksheets, you could use this:

Option Explicit
Sub testme2()
Dim wks As Worksheet
For Each wks In ActiveWorkbook.Worksheets
If wks.ChartObjects.Count 0 Then
wks.PrintOut preview:=True
End If
Next wks
End Sub

Or a combination of both?????????




joecrabtree wrote:

To all,

I have a workbook with a series of charts, each on their own worksheet.
Is there any way to easily just print all of the charts with the click
of a button using a Macro?

Thanks in advance,

Joseph Crabtree


--

Dave Peterson
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
printing charts to PDF Jimmy Charts and Charting in Excel 1 May 26th 08 09:27 PM
Printing Pie Charts - Or Gary Charts and Charting in Excel 0 October 4th 07 08:36 PM
Printing charts faberk Charts and Charting in Excel 1 July 5th 06 10:17 AM
Charts for printing Maxal Charts and Charting in Excel 1 April 22nd 06 04:03 AM
macro for printing pivot charts marina madeleine Excel Programming 0 October 15th 04 02:03 PM


All times are GMT +1. The time now is 06:39 AM.

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"