Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 84
Default Printing Macro how do I

I am using the following attached to a button on the menu sheet however
when the print command is finished it always takes me to the monday
sheet. How do I get the damn thing to print and stay on the menu sheet

Sub PrintMontoFrid()
'Print out End Of Week Stats
Application.ScreenUpdating = False
Sheets(Array("monday", "monback")).Select
ActiveWindow.SelectedSheets.PrintOut
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, copies:=1,
Collate _
:=True

End Sub

Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Printing Macro how do I

worksheets("Menu").select

Put this as the last line of your code before end sub

"pano" wrote:

I am using the following attached to a button on the menu sheet however
when the print command is finished it always takes me to the monday
sheet. How do I get the damn thing to print and stay on the menu sheet

Sub PrintMontoFrid()
'Print out End Of Week Stats
Application.ScreenUpdating = False
Sheets(Array("monday", "monback")).Select
ActiveWindow.SelectedSheets.PrintOut
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, copies:=1,
Collate _
:=True

End Sub

Thanks in advance


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
error when running cut & paste macro Otto Moehrbach Excel Worksheet Functions 4 August 9th 06 01:49 PM
link to combobox legepe Excel Discussion (Misc queries) 4 July 26th 06 04:45 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Macro printing Stephen C Excel Discussion (Misc queries) 3 April 18th 06 05:27 PM
Need assistance with printing macro Greegan Excel Worksheet Functions 0 September 7th 05 05:29 PM


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