Hi Experts,
I am bit unsure if this is possible or not? I have list of PDF files saved in a folder. Is it possible with VBA code to open each file and search for a word and strike it?
Regards,
JD
![]() |
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 |
-
Need VBA code to open PDF file and strike one word
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Need VBA code to open PDF file and strike one word
- This topic has 7 replies, 4 voices, and was last updated 9 years, 3 months ago.
AuthorTopicViewing 4 reply threadsAuthorReplies-
Paul T
AskWoody MVP -
WSJaggi
AskWoody LoungerJanuary 22, 2016 at 9:17 am #1548403Hi Paul,
I need to modify the PDF file. In short it should work in a way where each PDF should open and specific word gets strike. I find one link – http://www.vbaexpress.com/forum/showthread/?1554-HELP!!!-ABOUT-PDF-FILE. This is somewhat closed to my requirement. I am not able to run it, because I am not sure which reference I have to select from the tool option.
Regards,
JD -
macropod
AskWoody_MVPJanuary 23, 2016 at 2:22 am #1548512I need to modify the PDF file. In short it should work in a way where each PDF should open and specific word gets strike. I find one link – http://www.vbaexpress.com/forum/showthread/?1554-HELP!!!-ABOUT-PDF-FILE. This is somewhat closed to my requirement. I am not able to run it, because I am not sure which reference I have to select from the tool option.
As indicated in the link, you need to add a reference to the Acrobat Library, which you do via Tools|References in the VBE of whichever application you want to use. You can only do that if you have Adobe Acrobat Pro installed.
Adobe Acrobat Pro 8 is available as a free download (see: http://www.techspot.com/downloads/4683-adobe-acrobat-8-free.html – note the serial# mentioned there). Updates, to bring it up to 8.3.1 are available from: ftp://ftp.adobe.com/pub/adobe/acrobat/win/8.x/
Note 1: If you install the updates, you need to install them in order (8.1.0>8.1.1, etc.) and, although three of them will prompt to reboot, you don’t need to do so until all of the updates are installed. Your AV software may also mis-identify a print spooler in the last few updates as potential viruses – just tell it to accept them as legit.
Note 2: If you want to use Adobe Acrobat Pro 8 as a Print Driver, you’ll need to go to Start>Devices and Printers>Adobe PDF>Right-Click>Printer Properties>Advanced, then click the ‘Print Directly to Printer’ radio button.
Cheers,
Paul Edstein
[Fmr MS MVP - Word] -
WSJaggi
AskWoody LoungerJanuary 25, 2016 at 3:33 am #1548663Hi Macro,
Thanks for providing the above information on the Adobe. I checked the version which is installed in my PC and it is Adobe Reader XI. I think it is a basic one and not the pro one. Please let me if it is useful to run the macro via excel. I have selected following references from the tool|Reference option.
• Acrobat Access 3.0 type library
• Adobe Acrobat 10.0 type library
• Adobe acrobat Browser control type library 1.0
• Adobe Reader File Preview Type Library
Regards,
JD
-
-
-
Berton
AskWoody_MVPJanuary 22, 2016 at 9:35 am #1548408Just a note about .pdf files, many times they will be protected from being edited by others than the creator/author. That was one of the features when Adobe Acrobat was created for the purpose of sharing documents. There’s a number of such features available in Acrobat such as allowing or disallowing printing or other things, can allow only reading.
Before you wonder "Am I doing things right," ask "Am I doing the right things?" -
Paul T
AskWoody MVP -
macropod
AskWoody_MVP
Viewing 4 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
-
Does windows update component store “self heal”? (Awaiting moderation)
by
Mike Cross
36 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
53 minutes ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
18 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
1 hour ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
3 hours, 35 minutes ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
3 hours, 36 minutes ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
10 hours, 37 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
11 hours, 44 minutes ago -
0Patch, where to begin
by
cassel23
5 hours, 46 minutes ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
1 day, 1 hour ago -
89 million Steam account details just got leaked,
by
Alex5723
13 hours, 7 minutes ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
1 day, 9 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
1 day ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
12 hours, 1 minute ago -
Installer program can’t read my registry
by
Peobody
6 hours, 59 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
22 hours, 40 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
1 day, 6 hours ago -
False error message from eMClient
by
WSSebastian42
1 day, 21 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
2 days, 6 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
2 days, 7 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
1 day, 3 hours ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
2 days, 10 hours ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
1 day, 11 hours ago -
Outdated Laptop
by
jdamkeene
2 days, 16 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
2 days, 21 hours ago -
Another big Microsoft layoff
by
Charlie
2 days, 21 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
18 hours, 45 minutes ago -
May 2025 updates are out
by
Susan Bradley
1 hour, 12 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
3 days, 3 hours ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
3 days, 3 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.