Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Deselecting sheets after the PrintOut method

I'm using the PrintOut method for the Sheets collection object to print
a selected subset of sheets at once.

Sheets(Array("Chart A", "Chart B", "Sheet X", "Chart C")).PrintOut
Copies:=1, Collate:=True

They print just fine, but the sheets remain selected afterwards. How
can I deselect the sheets?

Thanks,
John

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default Deselecting sheets after the PrintOut method

Hi John

Sub test()
Dim x As String
x = ActiveSheet.Name
Sheets(Array("Chart A", "Chart B", "Sheet X", "Chart C")).Printout
Sheets(x).Select
End Sub

--


XL2003
Regards

William



wrote in message
oups.com...
I'm using the PrintOut method for the Sheets collection object to print
a selected subset of sheets at once.

Sheets(Array("Chart A", "Chart B", "Sheet X", "Chart C")).PrintOut
Copies:=1, Collate:=True

They print just fine, but the sheets remain selected afterwards. How
can I deselect the sheets?

Thanks,
John



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
Problems with Printout Method No Name Excel Programming 0 March 3rd 05 04:33 PM
PrintOut Method, Set ActivePrinter with a variable Neuraxis Excel Programming 3 March 1st 05 11:15 AM
Printout method: in color, duplex [email protected] Excel Programming 3 January 4th 05 08:55 PM
Problem with the PrToFileName parameter when using the Printout method on a worksheet Prasad Vanka Excel Programming 6 May 14th 04 10:56 AM
Excel vba printout method Curtis[_4_] Excel Programming 11 October 28th 03 01:15 PM


All times are GMT +1. The time now is 11:43 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"