Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default too fast word exit

I collect some data in excel and than using vba I'm
creating a word doc .
The doc is supposed to be printed.
The last few lines of the vba code execute closing word
doc and exit of word application.
Basically the code is too fast and it trying to close word
to fast - before the print out is done.

Main idea is to make the print out without any influence
of the user.


Next question is it possible to check if the printer is
operational before the code concerning word doc will start
working? (How to allow vba to check that printer is ready
to work)
Suggestions welcome.
Tks

Konrad

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default too fast word exit

Check Application.BackgroundPrintStatus within a loop and
don't try to close word until it returns 0; will never be
0 if the printer is offline/out of paper and you've sent a
print instruction.
-----Original Message-----
I collect some data in excel and than using vba I'm
creating a word doc .
The doc is supposed to be printed.
The last few lines of the vba code execute closing word
doc and exit of word application.
Basically the code is too fast and it trying to close

word
to fast - before the print out is done.

Main idea is to make the print out without any influence
of the user.


Next question is it possible to check if the printer is
operational before the code concerning word doc will

start
working? (How to allow vba to check that printer is ready
to work)
Suggestions welcome.
Tks

Konrad

.

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
You Need Fast Money ????? You Need Fast Money??? Links and Linking in Excel 0 December 16th 08 11:34 PM
How to get fast using ms-Excel and ms-Word? Raavs Excel Discussion (Misc queries) 1 May 24th 07 02:41 PM
excel to word - fast, easy? frendabrenda1 Excel Discussion (Misc queries) 4 December 8th 06 12:11 AM
Need help fast! [email protected] Excel Discussion (Misc queries) 2 October 1st 05 04:10 AM
Need help fast! Thanks! spectator Excel Discussion (Misc queries) 4 July 27th 05 07:01 AM


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