Remove Row If Found Specific Value From PDF

BBCC0000

New Member
Joined
Nov 2, 2022
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am currently creating a VBA macro that can help to read "specific value" from PDF files.

If found the "specific value" in PDF file, delete the whole row from Excel file,
If not found "specific value" in PDF file, keep the whole row from Excel file.

For example, you may see the photos that I have attached. The main file is "All User Details" and subfiles ("User ID") are "13842", "43686" and "26698".

(Sorry that I don't know how to attach the files.)

I want a macro that can read the "User ID" from the main file and find "specific values" like "pikol, hbkis, tgsdf" in PDF files from subfiles.

Condition 1: If the "specific values" exists in the subfiles, delete the whole row from "All User Details".
Condition 2: If the "specific values" does not exist in the subfiles, remain the whole row from "All User Details".

There is an attached result photo "All User Details (Result)", please have a look about it.

Do not hesitate to let me know if you have any enquiry.

Appreciate anyone who can help me in assisting to create this macro. Thank you in advance.
 

Attachments

  • 1.png
    1.png
    18.3 KB · Views: 4
  • 2.png
    2.png
    15 KB · Views: 4
  • 3.png
    3.png
    26.1 KB · Views: 4
  • 4.png
    4.png
    25.6 KB · Views: 3
  • 5.png
    5.png
    26.2 KB · Views: 4

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,214,957
Messages
6,122,466
Members
449,086
Latest member
kwindels

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top