Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Sheet Printing order

Howdie,

I have a macro that loops through all the sheets and prints them -
however it prints them in the order they were created, not in the order
that they are displayed on the screen. How can I get Excel to print them
in the order that they are visible...?

Thanks and Regards

Darin

Sub PrintVisibleSheets_2()

Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
If ws.Visible Then
If ws.Name < "data" Then
ws.PrintOut Copies:=1, Collate:=True
End If
End If

Next


End Sub


*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Sheet Printing order

I couldn't reproduce it. It looped in the tab order for me.

--
Regards,
Tom Ogilvy


"Darin Kramer" wrote:

Howdie,

I have a macro that loops through all the sheets and prints them -
however it prints them in the order they were created, not in the order
that they are displayed on the screen. How can I get Excel to print them
in the order that they are visible...?

Thanks and Regards

Darin

Sub PrintVisibleSheets_2()

Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
If ws.Visible Then
If ws.Name < "data" Then
ws.PrintOut Copies:=1, Collate:=True
End If
End If

Next


End Sub


*** Sent via Developersdex http://www.developersdex.com ***

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 order of worksheets pkeegs Excel Discussion (Misc queries) 0 November 29th 06 08:42 PM
Printing order Jim[_57_] Excel Programming 1 July 11th 05 09:23 PM
Printing in reverse order Otto Moehrbach Excel Programming 2 July 9th 05 11:26 AM
Printing in reverse order Bryan Excel Discussion (Misc queries) 3 June 22nd 05 05:30 PM
Printing sheet order wrong for workbook Brett[_4_] Excel Programming 1 May 27th 04 01:36 AM


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