Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Tab printing Macro

I work on a work on a workbook that varies on the amount of tabs each
day. Im trying to make a macro that would print the amount of tabs in
each day, with the exception of sheet1.

Any Ideas?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Tab printing Macro

How about

Thisworkbook.Printout

and throw away the sheet you don't want.


Just joking:

Sub AAA()
Dim sh As Worksheet
Dim sh1 As Worksheet
Set sh1 = ActiveSheet
Worksheets(2).Select
For Each sh In Worksheets
Select Case sh.Name
Case Worksheets(1).Name
Case Else
sh.Select False
End Select
Next
ActiveWindow.SelectedSheets.PrintOut
sh1.Select
End Sub

--
Regards,
Tom Ogilvy

"Luis A. Vázquez" wrote:

I work on a work on a workbook that varies on the amount of tabs each
day. Im trying to make a macro that would print the amount of tabs in
each day, with the exception of sheet1.

Any Ideas?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Tab printing Macro

On Sep 13, 3:10 pm, Tom Ogilvy
wrote:
How about

Thisworkbook.Printout

and throw away the sheet you don't want.

Just joking:

Sub AAA()
Dim sh As Worksheet
Dim sh1 As Worksheet
Set sh1 = ActiveSheet
Worksheets(2).Select
For Each sh In Worksheets
Select Case sh.Name
Case Worksheets(1).Name
Case Else
sh.Select False
End Select
Next
ActiveWindow.SelectedSheets.PrintOut
sh1.Select
End Sub

--
Regards,
Tom Ogilvy

"Luis A. Vázquez" wrote:
I work on a work on a workbook that varies on the amount of tabs each
day. Im trying to make a macro that would print the amount of tabs in
each day, with the exception of sheet1.


Any Ideas?


Hummm, trying to make it work but im getting error on the "sh.Select
False" line.

thanks anyway Tom.

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 using a macro John Excel Discussion (Misc queries) 1 June 14th 06 01:20 PM
Macro printing Stephen C Excel Discussion (Misc queries) 3 April 18th 06 05:27 PM
printing macro johnw Excel Discussion (Misc queries) 0 October 7th 05 02:31 PM
Printing from a macro RG Excel Programming 1 May 11th 05 10:40 AM
Printing in a Macro Don Guillett[_4_] Excel Programming 0 August 8th 03 01:11 AM


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