How to determine the moment in VBA/Excel 97 the print job was sent to spooler/printer ? I trigger a sub which hides empty rows for printing with the BeforePrint event, however I want to revert the display to normal modus a.s.a.p., meaning the moment it would not alter/influence the print job anymore.
![]() |
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 |
-
Something _like_ “After Print Event” ??
Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Something _like_ “After Print Event” ??
- This topic has 8 replies, 3 voices, and was last updated 24 years, 2 months ago.
Viewing 0 reply threadsAuthorReplies-
H. Legare Coleman
AskWoody PlusJanuary 26, 2001 at 8:40 am #511782I had a similar requirement in an application that I wrote, and unfortunately I did not find an easy solution. What I ended up doing was to have the application set up its own Menu and tool bars and replace the Print buttons with buttons that execute my own VBA code. You could also just replace the buttons on the standard menus and tool bars it this is the only change you need to make. Then the VBA code displays a print setup form if necessary, makes the format changes, uses the .Printout method to print he necessary ranges, and then changes the formats back. The really complex part comes in managing when your menu and tool bar changes get made and when you change them back to the standard Excel commands. There are many events that have to do this, and Excel is not very consistent about when some of these events fire. Good luck.
-
WScri
AskWoody Lounger -
WSGary Frieder
AskWoody Lounger -
H. Legare Coleman
AskWoody PlusJanuary 27, 2001 at 11:26 am #511922But I don’t think that feedback from the spooler/printer driver is what you want. I think that what you want is feedback from Excel when it finishes giving the print file to the spooler/print driver. It could be hours (days) before the spooler finishes printing, and the spooler does not really know when it has all of the printing.
-
WSGary Frieder
AskWoody LoungerJanuary 27, 2001 at 8:13 pm #511946Hi Legare,
I guess I was thinking more of the latter from the spooler: “I’ve got all of your print file”, rather than “I’m finished printing the file”.
Does Excel ‘know’ any more about the status of the print file than the initial PrintOut command – which starts sending the print file to the spooler? I’m only guessing, but my thought was that all the application knows how to do is “PrintOut” and that Windows takes it from there, including giving feedback to the application about status.
We need a good Win API person here to answer our questions!
Gary
-
H. Legare Coleman
AskWoody PlusJanuary 28, 2001 at 1:21 pm #511974Excel has to create the print image and send it to the printer driver. Windows really doesn’t do much in this process at all. So, yes, Excell does know when the last of the print file has been sent to the driver. The print driver knows that this print file has been closed, but does not know if another is going to be opened or not (the program could close the file between pages for example). So the driver really does not know when the print is complete. Unfortunately, Excel does not raise an event when it completes the printing.
-
WScri
AskWoody Lounger -
WScri
AskWoody LoungerMarch 16, 2001 at 12:48 pm #519173This should solve it:
-
-
-
-
Viewing 0 reply threads -

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
-
Debian 12.11 released
by
Alex5723
3 hours, 5 minutes ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
6 hours, 47 minutes ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
4 hours, 17 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
3 hours, 15 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
23 hours, 42 minutes ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
14 hours, 7 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
1 day, 2 hours ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
18 hours, 38 minutes ago -
Some advice for managing my wireless internet gateway
by
LHiggins
2 hours, 11 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
20 hours, 34 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
1 day, 11 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
1 day, 8 hours ago -
Does windows update component store “self heal”?
by
Mike Cross
22 hours, 11 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
2 days, 1 hour ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
9 hours, 46 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
13 hours, 26 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
2 days, 4 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
2 days, 4 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 day, 17 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
2 days, 12 hours ago -
0Patch, where to begin
by
cassel23
2 days, 6 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
3 days, 2 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
2 days, 14 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
3 days, 10 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
3 days, 1 hour ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
4 hours ago -
Installer program can’t read my registry
by
Peobody
11 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 days, 23 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
3 days, 6 hours ago -
False error message from eMClient
by
WSSebastian42
3 days, 21 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.