Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Print problems w/ charts excel 2003/2007

I just posted my strange situation in the general questions, but now I am
trying to code my way out of this using VBA. My problem is basically that my
charts aren't printing correctly when I use excel 2003. Every time I hit
print a different set of charts on my worksheet print incorrectly (the charts
look garbled and condensed). I have found that if I click on print preview on
each chart on my worksheet and then click on print they all work fine.

Therefore, I recorded the following (ugly) macro:

Sub PrintCompare()
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
ActiveSheet.ChartObjects("Chart 2").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
Range("a1").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End Sub

My only problem now is that I have to close each print preview before it
finally gets to the print command towards the bottom. If I can get this to
cycle through all the charts without needing to close print preview each time
that would solve my problem. Is there a way to select all the charts and
print preview them all together?

Ideas would be greatly appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Print problems w/ charts excel 2003/2007


Just a thought but have you looked at View, Sized with Window? Charts look
squashed if it's on the wrong setting as I remember

"dgold82" wrote:

I just posted my strange situation in the general questions, but now I am
trying to code my way out of this using VBA. My problem is basically that my
charts aren't printing correctly when I use excel 2003. Every time I hit
print a different set of charts on my worksheet print incorrectly (the charts
look garbled and condensed). I have found that if I click on print preview on
each chart on my worksheet and then click on print they all work fine.

Therefore, I recorded the following (ugly) macro:

Sub PrintCompare()
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
ActiveSheet.ChartObjects("Chart 2").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
Range("a1").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End Sub

My only problem now is that I have to close each print preview before it
finally gets to the print command towards the bottom. If I can get this to
cycle through all the charts without needing to close print preview each time
that would solve my problem. Is there a way to select all the charts and
print preview them all together?

Ideas would be greatly appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Print problems w/ charts excel 2003/2007


I looked and the there is a check next to sized with window but I can't click
on it since it is greyed out.

"Smallweed" wrote:

Just a thought but have you looked at View, Sized with Window? Charts look
squashed if it's on the wrong setting as I remember

"dgold82" wrote:

I just posted my strange situation in the general questions, but now I am
trying to code my way out of this using VBA. My problem is basically that my
charts aren't printing correctly when I use excel 2003. Every time I hit
print a different set of charts on my worksheet print incorrectly (the charts
look garbled and condensed). I have found that if I click on print preview on
each chart on my worksheet and then click on print they all work fine.

Therefore, I recorded the following (ugly) macro:

Sub PrintCompare()
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
ActiveSheet.ChartObjects("Chart 2").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
Range("a1").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End Sub

My only problem now is that I have to close each print preview before it
finally gets to the print command towards the bottom. If I can get this to
cycle through all the charts without needing to close print preview each time
that would solve my problem. Is there a way to select all the charts and
print preview them all together?

Ideas would be greatly appreciated!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Print problems w/ charts excel 2003/2007


OK, so I messed around a bit more and added a command to send the ESC button.
My only problem is that no matter where I try and put the ESC command there
is always 1 print preview showing. I want them all to clear and go straight
to the final print command. Here is my code:

Sub PrintCompare()

ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
Application.SendKeys "{ESC}"

ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
Application.SendKeys "{ESC}"

ActiveSheet.ChartObjects("Chart 2").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
Application.SendKeys "{ESC}"

ActiveSheet.ChartObjects("Chart 3").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
Application.SendKeys "{ESC}"

ActiveSheet.ChartObjects("Chart 5").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
Application.SendKeys "{ESC}"

ActiveSheet.ChartObjects("Chart 22").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
Application.SendKeys "{ESC}"

ActiveSheet.ChartObjects("Chart 6").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
Application.SendKeys "{ESC}"

ActiveSheet.ChartObjects("Chart 21").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview

Range("a1").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

End Sub


How can I get ALL the print previews to close and go straight to the print
command. Remember, I need to cycle through a single print preview for each
chart before I print due to rendering problems.

Thanks!

"dgold82" wrote:

I just posted my strange situation in the general questions, but now I am
trying to code my way out of this using VBA. My problem is basically that my
charts aren't printing correctly when I use excel 2003. Every time I hit
print a different set of charts on my worksheet print incorrectly (the charts
look garbled and condensed). I have found that if I click on print preview on
each chart on my worksheet and then click on print they all work fine.

Therefore, I recorded the following (ugly) macro:

Sub PrintCompare()
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
ActiveSheet.ChartObjects("Chart 2").Activate
ActiveChart.ChartArea.Select
ActiveWindow.SelectedSheets.PrintPreview
ActiveWindow.Visible = False
Range("a1").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End Sub

My only problem now is that I have to close each print preview before it
finally gets to the print command towards the bottom. If I can get this to
cycle through all the charts without needing to close print preview each time
that would solve my problem. Is there a way to select all the charts and
print preview them all together?

Ideas would be greatly appreciated!

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 Excel 2003/2007 - Rendering Problems dgold82 Excel Discussion (Misc queries) 0 July 7th 09 03:52 PM
Excell 2007 - Group of Charts Print Preview and/or Printing problems Elmtree via OfficeKB.com Charts and Charting in Excel 3 September 5th 08 04:10 PM
Problems with Viewing Charts in Excel 2007 Stars Charts and Charting in Excel 1 June 28th 08 05:41 PM
Charts that printed fine in 2003 don't print right in 2007? Nancy Excel Discussion (Misc queries) 0 March 10th 08 03:39 PM
Charts made in excel 2003 won't print to the correct size in 2007? Deb[_2_] Charts and Charting in Excel 1 September 16th 07 05:10 PM


All times are GMT +1. The time now is 07:51 AM.

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"