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
-
Where’s the cache today?
by
Up2you2
4 minutes ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
3 hours, 6 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
3 hours, 27 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
8 hours, 7 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
13 hours, 15 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
13 hours, 21 minutes ago -
regarding april update and may update
by
heybengbeng
14 hours, 51 minutes ago -
MS Passkey
by
pmruzicka
2 hours, 38 minutes ago -
Can’t make Opera my default browser
by
bmeacham
22 hours, 31 minutes ago -
*Some settings are managed by your organization
by
rlowe44
9 hours, 14 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
21 hours, 25 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 17 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
2 days, 2 hours ago -
AI slop
by
Susan Bradley
16 hours, 12 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
2 days, 3 hours ago -
Two blank icons
by
CR2
15 hours, 8 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 12 hours ago -
End of 10
by
Alex5723
2 days, 14 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 12 hours ago -
test post
by
gtd12345
2 days, 20 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 11 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
13 hours, 27 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
3 days, 1 hour ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 13 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 16 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 17 hours ago -
The story of Windows Longhorn
by
Cybertooth
3 days, 4 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 18 hours ago -
Are manuals extinct?
by
Susan Bradley
19 hours, 20 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
4 days, 4 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.