May 16, 2001 #1 mappan Programmer Joined Apr 25, 2001 Messages 1 Location US I need to access all the titles, subject, Authors of some word documents. How can I accomplish this using VB code? Thanks.
I need to access all the titles, subject, Authors of some word documents. How can I accomplish this using VB code? Thanks.
May 17, 2001 #2 dsi Programmer Joined Mar 13, 2000 Messages 964 Location US You should be able to use of these. If you are using VB, not VBA, then you will have to reference the Word Object Code: ThisDocument.Name ActiveDocument.Name wdApp.ThisDocument.Name wdApp.ActiveDocument.Name Hope this helps! Upvote 0 Downvote
You should be able to use of these. If you are using VB, not VBA, then you will have to reference the Word Object Code: ThisDocument.Name ActiveDocument.Name wdApp.ThisDocument.Name wdApp.ActiveDocument.Name Hope this helps!
May 17, 2001 #3 JWhyte Programmer Joined Feb 8, 1999 Messages 25 Location GB Asuming Word is running and you have a reference to Microsoft Word 8.0 Object Library in your VB project references: Code: debug.print ActiveDocument.BuiltInDocumentProperties("Subject").value debug.print ActiveDocument.BuiltInDocumentProperties("Author").value .... etc HTH John Whyte jwhyte@skipton.co.uk Upvote 0 Downvote
Asuming Word is running and you have a reference to Microsoft Word 8.0 Object Library in your VB project references: Code: debug.print ActiveDocument.BuiltInDocumentProperties("Subject").value debug.print ActiveDocument.BuiltInDocumentProperties("Author").value .... etc HTH John Whyte jwhyte@skipton.co.uk