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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBscript and Excel Reading names and creating docs

Status
Not open for further replies.

vic102482

IS-IT--Management
Aug 3, 2003
53
US
Hello I am a newbie to vbscript, and I would like to know if there is a way to read information out of an excel file with about 1200 names in them.

The file basically has the LASTNAME, FIRSTNAME one after anther for 1200 rows. Would there be a way to write a script that reads each name, creates a word object for each name, inputs predefined text into the word folder and saves and closes it? I got the word stuff pretty much down, but all I need to do is read these names out of excel.

Im still a newbie to vbscript, but I know a good portion of PERL even though I am forced to do this in vbscript. Please help!:)
 
You have mainly 3 options:
1) OLE Automation
2) MS Data Access
3) Converting the .xls to .csv and use FSO
Feel free to do a keyword search in this forum for
Code:
 read excel
as this topic has been covered many times.

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

Part and Inventory Search

Sponsor

Back
Top