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!

Formatting a word document using vbscript 1

Status
Not open for further replies.

mdalin

Programmer
May 28, 2003
1
US
Hi!

I'd like to get data from one excel sheet and then create a word document with some of that data. I'd also like to format this word document with different types of fonts, sizes etc. Is this possible using vbscript (WSH), or are there any better solutions? If it is possible, where can i find information about functions to use on a word document?

Thanks a lot
/Mathias
 
I would personally use VBA instead of VBScript to accomplish this task. I think the easiest way to do this would be to create a word template and then within Excel write the code to populate the fields you have setup within the Word template.

Shane
 
You can create Word in VBScript.

Finding information is sketchy at best on how to do it.

I am working on a script to take data out of Access 97 Db and create a "phone directory" in Word, creating tables.

Has been a pain, but fun.

Some pages to get some information include:
tek-tips FAQ329-299 and FAQ329-670(VBScript faq)

Create Word on the Server
log=142

Create and email a word doc from ASP

Try searching for some form of:
Creating a word document from ASP

Realistically, I have found little detailed documentation.

Doable, but you have to ferret out the pieces in VBA and then look at the Object Browser and look at the methods/properties etc.

Best sample, albeit based on VBA is
Look at her Access Archon Columns. A number of them involve Word and Access and ADO and Excel. Has helped on some points.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top