-
WSAdLeeuw
AskWoody LoungerThanks!
Eventually I solved it according this code:Option Explicit
Public sOldprinter As String
Public sPrev As String
Public sNew As String
Public iLoop As IntegerPublic KeuzePrinter As String
Public Sheet1Printer As String
Public Sheet2totEindPrinter As StringPublic sPrinterlist() As String
Public iCount As Integer
Public i As IntegerOption Explicit
Sub LongDocuments()iCount = 0
sPrev = “”
sOldprinter = Application.ActivePrinter
ReDim sPrinterlist(0)Do While (sPrev = “” Or sPrev sNew)
sPrev = sNew
Application.SendKeys “{home}{down ” & iCount & “}~”
Application.Dialogs(xlDialogPrinterSetup).Show
sPrinterlist(iCount) = Application.ActivePrinter
sNew = sPrinterlist(iCount)
iCount = iCount + 1
ReDim Preserve sPrinterlist(iCount)
Loop
iCount = iCount – 1Application.ActivePrinter = sOldprinter
For i = 1 To Sheets.Count
Sheets(i).ActivateIf i = 1 Then
For iLoop = 0 To iCount
Sheet1Printer = Trim(“adm01HP LaserJet 4050 Series PS Excel Bak3”)
If Sheet1Printer = Trim(Left(sPrinterlist(iLoop), 45)) Then
ActivePrinter = sPrinterlist(iLoop)
End If
Next
ActiveWindow.SelectedSheets.PrintOut
ElseIf i > 1 Then
For iLoop = 0 To iCount
Sheet2totEindPrinter = Trim(“adm01HP LaserJet 4050 Series PCL bak2”)
If Sheet2totEindPrinter = Trim(Left(sPrinterlist(iLoop), 40)) Then
ActivePrinter = sPrinterlist(iLoop)
End If
Next
ActiveWindow.SelectedSheets.PrintOut
End If
Next iApplication.ActivePrinter = sOldprinter
End Sub
-
WSAdLeeuw
AskWoody LoungerThanks!
Eventually I solved it according this code:Option Explicit
Public sOldprinter As String
Public sPrev As String
Public sNew As String
Public iLoop As IntegerPublic KeuzePrinter As String
Public Sheet1Printer As String
Public Sheet2totEindPrinter As StringPublic sPrinterlist() As String
Public iCount As Integer
Public i As IntegerOption Explicit
Sub LongDocuments()iCount = 0
sPrev = “”
sOldprinter = Application.ActivePrinter
ReDim sPrinterlist(0)Do While (sPrev = “” Or sPrev sNew)
sPrev = sNew
Application.SendKeys “{home}{down ” & iCount & “}~”
Application.Dialogs(xlDialogPrinterSetup).Show
sPrinterlist(iCount) = Application.ActivePrinter
sNew = sPrinterlist(iCount)
iCount = iCount + 1
ReDim Preserve sPrinterlist(iCount)
Loop
iCount = iCount – 1Application.ActivePrinter = sOldprinter
For i = 1 To Sheets.Count
Sheets(i).ActivateIf i = 1 Then
For iLoop = 0 To iCount
Sheet1Printer = Trim(“adm01HP LaserJet 4050 Series PS Excel Bak3”)
If Sheet1Printer = Trim(Left(sPrinterlist(iLoop), 45)) Then
ActivePrinter = sPrinterlist(iLoop)
End If
Next
ActiveWindow.SelectedSheets.PrintOut
ElseIf i > 1 Then
For iLoop = 0 To iCount
Sheet2totEindPrinter = Trim(“adm01HP LaserJet 4050 Series PCL bak2”)
If Sheet2totEindPrinter = Trim(Left(sPrinterlist(iLoop), 40)) Then
ActivePrinter = sPrinterlist(iLoop)
End If
Next
ActiveWindow.SelectedSheets.PrintOut
End If
Next iApplication.ActivePrinter = sOldprinter
End Sub
-
WSAdLeeuw
AskWoody LoungerThanks for our reply, but still I have the problem of differences in the name (portnr) of the same printer between workstations.
I want to make one macro that can be used on different workstations. If I have to ‘test” on each workstation how the printer exactly is called by recording a macro, it takes too much time. If I use the printername without “on ne00” the macro doesn’t work.Have any idea’s
-
WSAdLeeuw
AskWoody LoungerThank you for your quick reply! Works perfect.
-
WSAdLeeuw
AskWoody LoungerHallo Bart,
I read you have done an euroconversion. I hope it was also in Access.
Actually a customer of us has an Access database with a field that contains currency in NLG. He wants to convert these to euro’s but keep the history in NLG. I think the only solution is adding a column with the euro in it (based on the column for NLG).
Do you have some suggestions?Anouk
Nederland -
WSAdLeeuw
AskWoody LoungerAfter I had Office 2000 updated to SR1a, I had the same problem. Because I thought it was the SR I uninstalled Office and reinstalled Office 2000 (without SR1a) and I still had the same problem. Then I uninstalled Office 2000 en reinstalled a full version of Office 2000 SR1a and the problem was solved!
I’m curious what the difference is between an upgrade to SR1a and a full version of SR1a, but nevertheless this might be a solution to your problem. -
WSAdLeeuw
AskWoody Lounger -
WSAdLeeuw
AskWoody Lounger -
WSAdLeeuw
AskWoody Lounger -
WSAdLeeuw
AskWoody Lounger
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

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
-
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
4 hours, 22 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
5 hours, 39 minutes ago -
The story of Windows Longhorn
by
Cybertooth
6 hours, 8 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
7 hours, 37 minutes ago -
Are manuals extinct?
by
Susan Bradley
1 hour ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
16 hours, 45 minutes ago -
Network Issue
by
Casey H
3 hours, 50 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
1 day, 4 hours ago -
May 2025 Office non-Security updates
by
PKCano
1 day, 5 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
1 day, 7 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
7 hours, 59 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
1 day, 9 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
1 day, 9 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 day, 16 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
9 hours, 4 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
2 days, 4 hours ago -
How much I spent on the Mac mini
by
Will Fastie
1 day, 3 hours ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
7 hours, 5 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
2 days, 9 hours ago -
Setting up Windows 11
by
Susan Bradley
1 day, 4 hours ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
2 days, 5 hours ago -
Powershell version?
by
CWBillow
2 days, 6 hours ago -
SendTom Toys
by
CWBillow
17 hours, 5 minutes ago -
Add shortcut to taskbar?
by
CWBillow
2 days, 10 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
3 days, 2 hours ago -
How can I install Skype on Windows 7?
by
Help
3 days, 1 hour ago -
Logitech MK850 Keyboard issues
by
Rush2112
2 days, 8 hours ago -
We live in a simulation
by
Alex5723
3 days, 16 hours ago -
Netplwiz not working
by
RetiredGeek
3 days, 3 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
4 days, 5 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.