Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to check strings in Excel files using vbscript?

Status
Not open for further replies.

Guima1

IS-IT--Management
Jun 6, 2003
3
BR
Hi there.

I'm a network administrator and I have basic knowledge on vbs. I need to search into all Excel files in a folder, some words that are listed in a text file. My question is:

How can I do my script read ALL the content of an Excel file, without the need to export data to a text file?

Some files have many sheets and i need to checks all cells in all sheets against the word list.

Any help will be welcome

tks




 
If you know how to do that job in VBA, you can do almost the same things in WSH via OLE automation.
Code:
Set X = WScript.CreateObject("Excel.Application")
And then you manage the X object as the excel application object.

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top