Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Printing forom different tabs

I want to print just the first page from several tabs in a workbook.
The code is:

ActiveSheet.PrintOut From:=1, To:=1, Copies:=1

But how do I write the macro so that the printing selection is repeated for
the next tab until the end of the workbook?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Printing forom different tabs

Fredrik,

Here is something I have used it has worked pretty well for me.

Sub PrintAll
Dim wks As Worksheet

Application.ScreenUpdating = False
On Error Resume Next

For Each wks In Worksheets
wks.PrintOut From:=1, To:=1, Copies:=1
Next wks

Application.ScreenUpdating = True

On Error GoTo 0

End Sub

"Fredrik" wrote:

I want to print just the first page from several tabs in a workbook.
The code is:

ActiveSheet.PrintOut From:=1, To:=1, Copies:=1

But how do I write the macro so that the printing selection is repeated for
the next tab until the end of the workbook?

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
Extracting a month name forom a date Finance Guru Excel Worksheet Functions 5 May 28th 09 05:42 PM
Printing Tabs on one page David Springelmeyer Excel Discussion (Misc queries) 1 January 24th 08 08:59 PM
Returning a value forom a Module to a Userform CSUS_CE_Student[_2_] Excel Programming 3 April 23rd 07 08:44 AM
Printing a list of tabs off abertawe Excel Discussion (Misc queries) 1 January 31st 06 03:48 PM
Printing Tabs Kathy@ACL Excel Discussion (Misc queries) 1 December 5th 05 05:46 PM


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