Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Print Macro - Printing out of Order - 2nd Post

Maybe its just a timing issue... try delaying the macro after each print,
with something like

Dim i As Long

For i = 1 to 1000
DoEvents
Next i

--
Regards,

Juan Pablo González

"Keith Young" wrote in message
...
Just thought I would try reposting this message since there were no
suggestions on how to correct on the first try last week. Thanks in

advance
if anyone can provide any help.

================================================== ===========

Any ideas on why this simple printing code might print the pages out of
order? It simply is attempting to print all of the pages (preferably in
order) on a sangle sheet while adding some
information at the top of the sheet.

Sub sevenseven()
numpages = 10
For x = 1 To numpages
Sheet8.Range("cell").Value = "Sheet " & x
Sheet8.PrintOut From:=x, To:=x
Next x
End Sub

all of the pages print, however, the order gets all screwed up - for
example, it might print the pages in the following order
1,2,5,3,4,6,7,9,10,8

Could it possible be a printer issue?

Using Excel 2002, Windows XP Prof, HP Laser Printer

Any ideas of how this might be fixed?

Thanks in advance,

Keith





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Print Macro - Printing out of Order - 2nd Post

Just thought I would try reposting this message since there were no
suggestions on how to correct on the first try last week. Thanks in advance
if anyone can provide any help.

================================================== ===========

Any ideas on why this simple printing code might print the pages out of
order? It simply is attempting to print all of the pages (preferably in
order) on a sangle sheet while adding some
information at the top of the sheet.

Sub sevenseven()
numpages = 10
For x = 1 To numpages
Sheet8.Range("cell").Value = "Sheet " & x
Sheet8.PrintOut From:=x, To:=x
Next x
End Sub

all of the pages print, however, the order gets all screwed up - for
example, it might print the pages in the following order
1,2,5,3,4,6,7,9,10,8

Could it possible be a printer issue?

Using Excel 2002, Windows XP Prof, HP Laser Printer

Any ideas of how this might be fixed?

Thanks in advance,

Keith



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Print Macro - Printing out of Order - 2nd Post

Thanks Juan

This seems to work within a single macro. But if 2 or macros are run
together the pages still are printed out of order (even if both macros
include the doevents statement)

Must be a printer issue??


"Juan Pablo Gonzalez" wrote in message
...
Maybe its just a timing issue... try delaying the macro after each print,
with something like

Dim i As Long

For i = 1 to 1000
DoEvents
Next i

--
Regards,

Juan Pablo González

"Keith Young" wrote in message
...
Just thought I would try reposting this message since there were no
suggestions on how to correct on the first try last week. Thanks in

advance
if anyone can provide any help.

================================================== ===========

Any ideas on why this simple printing code might print the pages out of
order? It simply is attempting to print all of the pages (preferably

in
order) on a sangle sheet while adding some
information at the top of the sheet.

Sub sevenseven()
numpages = 10
For x = 1 To numpages
Sheet8.Range("cell").Value = "Sheet " & x
Sheet8.PrintOut From:=x, To:=x
Next x
End Sub

all of the pages print, however, the order gets all screwed up - for
example, it might print the pages in the following order
1,2,5,3,4,6,7,9,10,8

Could it possible be a printer issue?

Using Excel 2002, Windows XP Prof, HP Laser Printer

Any ideas of how this might be fixed?

Thanks in advance,

Keith







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
I have Invoice 1 and2 I need to post to 1 and print iems on 2 Mike Excel Discussion (Misc queries) 2 October 19th 09 01:16 PM
Set the print order of worksheets when printing entire workbook jimbo Excel Discussion (Misc queries) 2 December 4th 08 09:01 PM
printing order of worksheets pkeegs Excel Discussion (Misc queries) 0 November 29th 06 08:42 PM
Daily Macro to Download Data, Order and paste in order Iarla Excel Worksheet Functions 1 November 17th 04 01:59 PM
Print Macro - Printing out of order Keith Young Excel Programming 2 April 22nd 04 08:26 PM


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