VBA to search a string within multiple WKBs ?

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
781
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have 100s of small files (roughly 50kb) with 2 columns of data all the same format.

How quick would it be to enter a string, then search that string in all files (column A)

Then return the filename + column B data

Wondering if it's more efficient to merge all workbooks first? As I'll be using this search repeatedly

Appreciate any help
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Re: VBA to search a string within multiple WKs ?

I'd merge the workbooks first.
Opening 100's of files will not be overly fast.
 
Upvote 0
Thanks, I thought it would be

Problem is that the small files get added daily so I'll need to figure a way to add just the new files to the merged one.
 
Upvote 0
Once a file has been added, move it to a new location.
That way there won't be a problem.
 
Upvote 0

Forum statistics

Threads
1,203,538
Messages
6,055,990
Members
444,839
Latest member
laurajames

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