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

Can you do an Excel Data Import using vbscript?

Status
Not open for further replies.

realty205

Technical User
Aug 1, 2008
10
US
I was hoping that I could do an Excel Data Import utilizing vbscript. Does anyone know if this is possible? Anyone have a sample?
 
Do you know how to do it in Excel VBA ?
If not then use the Excel macro recorder doing the import manually.
Finally it's just a matter of executing the code with OLE automation from VBScript.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hello,
I wrote a script that opens a csv file, sets all the cell columns to auto fit, edits the cell formats of certain columns, (zip to 5 zeroes so the leading zeroes don't get dropped) and then writes the file out as an excel spreadsheet. Is that something that could fit into what you are trying to do?

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top