-
WScunado85
AskWoody LoungerZeddy – I think this will be my last question.
I want to set a parameter:
scaletofit to no.
would the code just be ” scaletofit=” & chr(32) & “no” & char(32)
Or is there a way to define as no. The above code isnt working -
WScunado85
AskWoody LoungerZEDDY!!!!!! YOU ARE THE MAN!
After weeks of trying to figure this out, with all of your help, it works.
THANK YOU SO MUCH!
-
WScunado85
AskWoody LoungerHaha – didn’t know where you went, but you disappeared for 3 days from the forum, so i figured you went somewhere!
I guess I may be confused by the bioPDF page. Is “PDFCMD” a space filler for the location of the PDFCMD.exe file?
In other words, Should I put “C:Program FilesbioPDFPDF Writerpdfcmd.exe” where “PDFCMD” is listed?
-
WScunado85
AskWoody LoungerWelcome back Zeddy!
I am still having trouble here – I am not sure why. I have never worked with shells before.
I sort of just guessed on the format.
I took your advice and removed the “” around zPrintCopies.Is the standard shell command as follows:
Shell ( *PROGRAM* & *Command* ) (without the * of course). -
WScunado85
AskWoody LoungerOkay, with my very limited coding acknowledgement, this is what I came up with.
Shell (zProg & “PDFCMD command=printpdf input=” & Chr(32) & zFile & Chr(32) & ” printer=” & Chr(32) & zPrinter & Chr(32) & ” lastpage=” & Chr(32) & zPrintCopies & Chr(32))
based on bioPDF’s website
http://www.biopdf.com/guide/print_pdf_from_command_line.php#PdfCmdI am still getting an error. This shell command may be completely off – Any thoughts?
-
WScunado85
AskWoody LoungerHey Zeddy! I hope your weekend is going well.
Adobe Acrobat Pro is probably my first choice as I am familiar with it, but if thats not possible, I found this!
I found a program that may work here (bioPDF). Not sure if you have any experience with it.
I found this help file on their website for Command Lines, but I am not sure exactly how to convert the command line into the shell command for my program.
Here is the link. It does allow printing of certain range of pages.
http://www.biopdf.com/guide/print_pdf_from_command_line.php#PdfCmd
From the tutorial, It seems as though my command line should be something like this:PDFCMD command=printpdf input=zFile printer=zPrinter lastpage=zPrintCopies
In the above example, zFile, zPrintCopies and zPrinter are variables.
I am not sure how to convert this into the shell format that you have been using. Any chance you could help me with this? Hopefully this solves the problem, and I can stop bugging you for help!Thank you again.Ryan
-
WScunado85
AskWoody LoungerThanks Zeddy!
I do have Adobe Acrobat Pro (and not just reader) if that helps. Also, I would be willing to make a smaller purchaser if it would help solve the problem.Thanks,
Ryan -
WScunado85
AskWoody LoungerHey Zeddy,
Any luck with that code for printing a range of pages in the PDF? I hope its even possible! haha.
-
WScunado85
AskWoody LoungerHey Zeddy!
The design of the labels were created in a label generating software. Ideally, we could have done this from the start in, but unfortunately, the files themselves have already been created. There are about 1,000 variations. At some point, these labels are going to require a complete overhaul, but right now, I am trying to patch the hole in the boat! 🙂
-
WScunado85
AskWoody LoungerThank you so much Zeddy. I look forward to your response!
-
WScunado85
AskWoody LoungerHi Zeddy!
Thank you again for the help. You have been an absolute lifesafer in this process.
This is actually for a label job, so once the initial setup is complete, no new labels will need to be created. I know creating multiple copies of the label in the same PDF is more time up front, but for my application, I think it would be a better option for a few reasons.
The problem is, this is a high speed printer which takes about 30 seconds to print the first label, but can print over 100 labels per minute afterwards. With the loop provided, it is continually printing 1 label, which makes the print time about 20 times longer. Also, our printer has the ability to cut the labels after each job, which allows us to keep the labels organized.
I am not sure if it is even possible to print a range of pages in the PDF, but if it is, would it be possible to modify the code to print a range of pages in the file instead of using the loop?
As always, Thank you Zeddy!
-
WScunado85
AskWoody LoungerGood Morning All. I know this is an older thread, but I was hoping that someone could help me.
Below is the current code that I am running. Essentially this macro will print external PDF files that are listed in column C.I am having a little trouble taking this to the next step.
Here is what I am looking to do – hopefully someone can help.Column C is the file name. Column b is the quantity. I want to print multiple copies of the file depending on what quantity is listed in column b. I figured the best way to do this is to create a PDF with 50 pages of identical files (as the files are very small in size and the print quantity will next extend past 50) and have a function which prints the number of pages in the PDF that correspond to quantity.
For instance, if column b has a quantity of 20, this macro will print pages 1-20 of the given PDF. The problem is, however, while I imagine this code is quite easy for some of you, it is way above my head!
I would appreciate any help available.
Thank you again!
RyanSub printPDFfiles()
zProg = “C:Program FilesAdobeAcrobat DCAcrobatAcrobat.exe”
zLastRow = [c200].End(xlUp).Row
temp = “c9:c” & zLastRowzPrinter1 = “Afinia L801 Label Printer”
‘~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For Each cell In Range(temp)
zFile = cell.ValueIf zFile Like “*.pdf” Then
Shell (zProg & ” /n /h /t ” & Chr(34) & zFile & Chr(34) & ” ” & zPrinter1)
End IfNext
End Sub
![]() |
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 |

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 26200.5661 released to DEV
by
joep517
5 hours, 39 minutes ago -
Windows 11 Insider Preview build 26120.4452 (24H2) released to BETA
by
joep517
5 hours, 40 minutes ago -
Hello Windows…My Problem is Windows Hello…
by
rdleib
6 hours, 56 minutes ago -
New Canon Printer Wants Data Sent
by
Win7and10
7 hours, 14 minutes ago -
I set up passkeys for my Microsoft account
by
Lance Whitney
4 hours, 17 minutes ago -
AI is for everyone
by
Peter Deegan
6 hours, 47 minutes ago -
Terabyte update 2025
by
Will Fastie
50 minutes ago -
Migrating from Windows 10 to Windows 11
by
Susan Bradley
1 hour, 51 minutes ago -
Lost sound after the upgrade to 24H2?
by
Susan Bradley
1 day, 6 hours ago -
How to move 10GB of data in C:\ProgramData\Package Cache ?
by
Alex5723
3 hours, 29 minutes ago -
Plugged in 24-7
by
CWBillow
15 hours, 58 minutes ago -
Netflix, Apple, BofA websites hijacked with fake help-desk numbers
by
Nibbled To Death By Ducks
1 day, 19 hours ago -
Have Copilot there but not taking over the screen in Word
by
CWBillow
1 day, 16 hours ago -
Windows 11 blocks Chrome 137.0.7151.68, 137.0.7151.69
by
Alex5723
3 days, 10 hours ago -
Are Macs immune?
by
Susan Bradley
1 hour, 49 minutes ago -
HP Envy and the Function keys
by
CWBillow
2 days, 18 hours ago -
Microsoft : Removal of unwanted drivers from Windows Update
by
Alex5723
11 hours, 18 minutes ago -
MacOS 26 beta 1 dropped support for Firewire 400/800
by
Alex5723
3 days, 21 hours ago -
Unable to update to version 22h2
by
04om
1 day, 6 hours ago -
Windows 11 Insider Preview Build 26100.4482 (24H2) released to Release Preview
by
joep517
4 days, 5 hours ago -
Windows 11 Insider Preview build 27881 released to Canary
by
joep517
4 days, 5 hours ago -
Very Quarrelsome Taskbar!
by
CWBillow
3 days, 15 hours ago -
Move OneNote Notebook OFF OneDrive and make it local
by
CWBillow
4 days, 18 hours ago -
Microsoft 365 to block file access via legacy auth protocols by default
by
Alex5723
4 days, 7 hours ago -
Is your battery draining?
by
Susan Bradley
12 hours, 57 minutes ago -
The 16-billion-record data breach that no one’s ever heard of
by
Alex5723
1 day, 6 hours ago -
Weasel Words Rule Too Many Data Breach Notifications
by
Nibbled To Death By Ducks
4 days, 22 hours ago -
Windows Command Prompt and Powershell will not open as Administrator
by
Gordski
1 day ago -
Intel Management Engine (Intel ME) Security Issue
by
PL1
4 days, 6 hours ago -
Old Geek Forced to Update. Buy a Win 11 PC? Yikes! How do I cope?
by
RonE22
3 days, 23 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.