Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GF GF is offline
external usenet poster
 
Posts: 5
Default Printing problem

I am trying to print a series of reports that are retrieving information from
a data source using VBA. If I place a msgbox in between the print requests
the printout
succeeds. If I do not do this it does not print. It is as if the printer
cannot print if the retrieval is not fast enough. Is there a way to put a
delay in possibly.
..


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Printing problem

gf,
Not sure if this is it, but are the querytables have .BackgroundRefresh=True
?

NickHK

"gf" wrote in message
...
I am trying to print a series of reports that are retrieving information

from
a data source using VBA. If I place a msgbox in between the print requests
the printout
succeeds. If I do not do this it does not print. It is as if the printer
cannot print if the retrieval is not fast enough. Is there a way to put a
delay in possibly.
.




  #3   Report Post  
Posted to microsoft.public.excel.programming
GF GF is offline
external usenet poster
 
Posts: 5
Default Printing problem

Nick

Firstly, thanks for the reply.

Within the same routine we have been able to print fine, but when a more
detailed query is given then it does not print. Saying that if we put a
message box on to stop the routine then it prints. I am a bit lost as to why.

Thanks

"NickHK" wrote:

gf,
Not sure if this is it, but are the querytables have .BackgroundRefresh=True
?

NickHK

"gf" wrote in message
...
I am trying to print a series of reports that are retrieving information

from
a data source using VBA. If I place a msgbox in between the print requests
the printout
succeeds. If I do not do this it does not print. It is as if the printer
cannot print if the retrieval is not fast enough. Is there a way to put a
delay in possibly.
.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Printing problem

gf,
That's why I asked if you are using QueryTables. (Sorry, should be
..BackgroundQuey not .BackgroundRefresh)
There is also an "AfterRefresh" event and .Refreshing property.

It may be that you are not waiting until the refresh has finished before you
try printing it.

Some code of what you are currently doing would help.

NickHK

"gf" wrote in message
...
Nick

Firstly, thanks for the reply.

Within the same routine we have been able to print fine, but when a more
detailed query is given then it does not print. Saying that if we put a
message box on to stop the routine then it prints. I am a bit lost as to

why.

Thanks

"NickHK" wrote:

gf,
Not sure if this is it, but are the querytables have

..BackgroundRefresh=True
?

NickHK

"gf" wrote in message
...
I am trying to print a series of reports that are retrieving

information
from
a data source using VBA. If I place a msgbox in between the print

requests
the printout
succeeds. If I do not do this it does not print. It is as if the

printer
cannot print if the retrieval is not fast enough. Is there a way to

put a
delay in possibly.
.







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
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
Problem with printing jennifer Excel Discussion (Misc queries) 4 June 18th 08 02:25 PM
Printing Problem Mark Excel Worksheet Functions 1 March 9th 07 01:58 PM
Printing Problem kimmyrt New Users to Excel 3 January 26th 05 08:55 PM
problem printing to PDF mark kubicki Excel Discussion (Misc queries) 1 January 21st 05 06:19 PM


All times are GMT +1. The time now is 11:02 PM.

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"