Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Coding for printing (without preview)

Sub printall()
For i = 1 To 6
[c1] = i
ActiveSheet.PrintPreview
Next
[c1] = 0
End Sub

This piece of coding will printout a filtered chart. My problem is that it
previews the chart and then you have to click the print button to print. I
don't want that. I would like it to print without previewing. I have run
the code without the word printpreview and it still doesn't work. Any help
is appreciated. Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Coding for printing (without preview)

Peter,

Try

ActiveSheet.PrintOut


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Peter McCaul" wrote in message
...
Sub printall()
For i = 1 To 6
[c1] = i
ActiveSheet.PrintPreview
Next
[c1] = 0
End Sub

This piece of coding will printout a filtered chart. My

problem is that it
previews the chart and then you have to click the print button

to print. I
don't want that. I would like it to print without previewing.

I have run
the code without the word printpreview and it still doesn't

work. Any help
is appreciated. Thanks.




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
Image distortion during printing and preview canology Excel Discussion (Misc queries) 10 April 3rd 23 06:50 PM
Excel VBA Coding for Printing Varne Excel Discussion (Misc queries) 4 July 24th 08 04:48 PM
Print Preview does not allow printing F W Green Excel Discussion (Misc queries) 1 April 29th 08 02:32 PM
how do I fix printing-able to see as preview, but print out blank Zum Excel Discussion (Misc queries) 0 November 5th 07 02:46 PM
not printing same as preview mac Excel Discussion (Misc queries) 3 May 4th 07 09:59 PM


All times are GMT +1. The time now is 11:08 PM.

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"