Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 printing problem--printing 1 document on 2 pages | Excel Discussion (Misc queries) | |||
Problem with printing | Excel Discussion (Misc queries) | |||
Printing Problem | Excel Worksheet Functions | |||
Printing Problem | New Users to Excel | |||
problem printing to PDF | Excel Discussion (Misc queries) |