Scripting Questions

peszo

New Member
Joined
Dec 17, 2009
Messages
25
HI all,

I have a scripting question for all you experts:

Using CMD Line I output the file/folder path to the same filename (text file) in 10000 locations, the files contain different content. I want to now run a script to open up each file, search for a specific text string (ABC123, or ABC456, or ABC789). Once I find the text, I want to copy the file folder location where that text exists into 1 of three spreadsheets (depending on the result of the search), ABC123.xls, or ABC456.xls, or ABC789.xls), new lines on the spreadsheet for every result.

I am not good at scripting, and it took me a full day to come up with the cmd line to get the output file [dir /b/s index.xml > listing.xls] any help would be greatly appreciated.

Thanks,
PESZO
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,225,502
Messages
6,185,350
Members
453,287
Latest member
Emeister

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