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
-
Recommended watching : Mountainhead movie
by
Alex5723
3 hours ago -
End of support for Windows 10
by
Old enough to know better
19 minutes ago -
What goes on inside an LLM
by
Michael Covington
2 hours, 49 minutes ago -
The risk of remote access
by
Susan Bradley
1 hour, 55 minutes ago -
The cruelest month for many Office users
by
Peter Deegan
2 hours, 17 minutes ago -
Tracking protection and trade-offs in Edge
by
Mary Branscombe
5 hours, 14 minutes ago -
Supreme Court grants DOGE access to confidential Social Security records
by
Alex5723
11 hours, 51 minutes ago -
EaseUS Partition Master free 19.6
by
Alex5723
3 hours, 47 minutes ago -
Microsoft : Edge is better than Chrome
by
Alex5723
1 day, 1 hour ago -
The EU launched DNS4EU
by
Alex5723
1 day, 13 hours ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
1 day, 4 hours ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
1 day, 19 hours ago -
Set default size for pasted photo to word
by
Cyn
2 days, 1 hour ago -
Dedoimedo tries 24H2…
by
Cybertooth
1 day, 13 hours ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
3 days ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
17 hours, 2 minutes ago -
Small desktops
by
Susan Bradley
16 hours, 8 minutes ago -
Totally disable Bitlocker
by
CWBillow
1 day, 17 hours ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
2 days, 21 hours ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
4 days, 4 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
1 day, 22 hours ago -
Mystical Desktop
by
CWBillow
4 days, 7 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
3 days, 12 hours ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
1 day ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
4 days, 22 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
5 days, 1 hour ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
4 days, 23 hours ago -
What is wrong with simple approach?
by
WSSpoke36
2 days, 21 hours ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
5 days, 11 hours ago -
Location, location, location
by
Susan Bradley
4 days, 1 hour 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.