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

get wordcount from Word to insert in Excel using vb6 1

Status
Not open for further replies.

pedro404

Programmer
Feb 17, 2004
11
DE
hi
I'm building a small application which needs to open a word document to get the following information.
character count, author, filesize
which i then have to transfer to an excel sheet.
anyone have any ideas.
thanks in advance

pedro404
 
Character count - not sure - still thinking.

File size - use the fso and treat the .doc as a standard file to achieve this.

Author - myAuthor = ActiveDocument.BuiltInDocumentProperties("Author")

Good luck

BB
 

FileSize = FileLen(PathToFile)'2gb limit or error
Other info look up at MS DSOFile.exe it comes with example vb code.

Good Luck

 
thanks to both of you
i tried the MS DSOFile.exe first and found all the info i needed
i think vb5prgrmr deserves a star for that.
cheers
pedro404
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top