Is there a reason you don’t want to use the VBA OnTime method which should be able to do the same thing?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
VB6 – in toolbox – there is a timer control (VB6)
Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » VB6 – in toolbox – there is a timer control (VB6)
- This topic has 6 replies, 6 voices, and was last updated 23 years, 8 months ago.
AuthorTopicH. Legare Coleman
AskWoody PlusAugust 5, 2001 at 11:20 pm #358789Viewing 1 reply threadAuthorReplies-
WSDiana
AskWoody LoungerAugust 6, 2001 at 1:16 am #536094 -
WSDiana
AskWoody LoungerAugust 6, 2001 at 2:44 am #536118HI Leagre
What I’m doing is sending the document to the printer
with PrintOut Background:=True
(meaning the code continues to run while word prints)
& I need to determine if file has completed spooling/ printing before I can continue my code.when I use the OnTime method
the result is
for some reason the application doesnt freeze but is caught up in some loop & ‘pauses’ or freezes the printer spooling.
So I tested on a large document eg 70 pages
the code runs onTime
sends document to print
& stops spooling on page 2 & doesnt complete
so I have to CTRL Break to stop the code
as its in some loop.I’ve been frying about the timer code for a few weeks.
I thought I’ld use the VB6 timer control
& do like a time counter & see if that works.Another solution was
set background to False
eg PrintOut Background:=False
this means it will the code will stop until printing is completed & then code resume when prining completed.With Background set to False – this displays a default
word dialog box (see attachment of sample).
I thought if I could capture this default word message box & before capturing hide the message box & display my own custom message box.– this will work but I dont know how to capture or hide the default word message box.
any ideas?
Diana -
WScharlotte
AskWoody Lounger -
WSgwhitfield
AskWoody Lounger -
WSVBNerd
AskWoody LoungerAugust 6, 2001 at 4:51 pm #536230I never could find a way to put a timer into Word. Instead I wrote a VB program that automates Word and sets the timer. After the timer runs out(The program set it for a minute), the program checks the number of documents in the print spool. If there are still some, the program set the timer again until the number of docs in the print spool is zero.
This was for a program that converted piles of documents to PDF on a daily basis.
-
-
WShoverdj
AskWoody LoungerAugust 6, 2001 at 2:25 pm #536197I don’t know what you had in mind for checking the spooler status, but you might try putting it into a Do Until loop.
For example:
In your print procedure…Do Until SpoolerFinished = True
DoEvents
LoopThen a separate function…
Function SpoolerFinished() As Boolean
‘Code to check spooler status…
End FunctionDarryl
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
18 minutes ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
11 hours, 15 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
5 hours, 59 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
2 hours, 13 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
1 hour, 21 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
15 hours, 4 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
23 hours, 46 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
4 hours, 48 minutes ago -
23 and you
by
Max Stul Oppenheimer
12 hours, 2 minutes ago -
April’s deluge of patches
by
Susan Bradley
16 hours, 14 minutes ago -
Windows 11 Windows Updater question
by
Tex265
22 hours ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
1 day, 20 hours ago -
Registry Patches for Windows 10
by
Drcard:))
2 days, 1 hour ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
1 day, 7 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
17 hours, 17 minutes ago -
Align objects on a OneNote page
by
CWBillow
2 days, 6 hours ago -
OneNote Send To button?
by
CWBillow
2 days, 7 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
2 days, 16 hours ago -
No Newsletters since 27 January
by
rog7
20 hours, 44 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
1 day, 16 hours ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
1 day, 15 hours ago -
Google One Storage Questions
by
LHiggins
23 hours, 20 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
1 day, 6 hours ago -
Ancient SSD thinks it’s new
by
WSila
1 day, 21 hours ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
3 days, 6 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
17 hours, 34 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
2 days, 14 hours ago -
Firefox 137
by
Charlie
6 hours, 37 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
3 days, 19 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
3 days, 19 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.