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, 4 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
-
Microsoft : Edge is better than Chrome
by
Alex5723
2 hours, 26 minutes ago -
The EU launched DNS4EU
by
Alex5723
2 hours, 36 minutes ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
41 minutes ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
8 hours, 2 minutes ago -
Set default size for pasted photo to word
by
Cyn
14 hours, 4 minutes ago -
Dedoimedo tries 24H2…
by
Cybertooth
2 hours, 10 minutes ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
1 day, 13 hours ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
1 day, 10 hours ago -
Small desktops
by
Susan Bradley
3 hours, 42 minutes ago -
Totally disable Bitlocker
by
CWBillow
6 hours, 36 minutes ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
1 day, 10 hours ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
2 days, 16 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
11 hours, 44 minutes ago -
Mystical Desktop
by
CWBillow
2 days, 20 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
2 days, 1 hour ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
17 hours, 32 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
3 days, 11 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
3 days, 14 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
3 days, 12 hours ago -
What is wrong with simple approach?
by
WSSpoke36
1 day, 10 hours ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
3 days, 23 hours ago -
Location, location, location
by
Susan Bradley
2 days, 14 hours ago -
Cannot get a task to run a restore point
by
CWBillow
4 days, 1 hour ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
3 days, 15 hours ago -
June 2025 Office non-Security Updates
by
PKCano
4 days, 12 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
51 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
4 days, 11 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
4 days, 22 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
4 days, 1 hour ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
5 days, 7 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.