?
Solved

word document properties access in vba

Posted on 1999-12-09
5
Medium Priority
?
831 Views
Last Modified: 2012-06-21
i would like to know how i can read rapidly the word documents' properties
(like author, subject, comments, title
  etc.) in vba script as windows does.
0
Comment
Question by:avi666
5 Comments
 
LVL 22

Expert Comment

by:ture
ID: 2268337
avi666,

Use ActiveDocument.BuiltInDocumentProperties, like this:

MsgBox ActiveDocument.BuiltInDocumentProperties("Author")

MsgBox ActiveDocument.BuiltInDocumentProperties("Subject")

MsgBox ActiveDocument.BuiltInDocumentProperties("Comments")

Ture Magnusson
Karlstad, Sweden
0
 

Expert Comment

by:Jayson_von_Ryan
ID: 2268450
Also, a for next loop from 1 to maxindex
with
ActiveDocument.BuiltInDocumentProperties(i)
in it accesses all options

Don't forget customdocumentproperties(i)
is for custom doc. prop's.
0
 

Author Comment

by:avi666
ID: 2292999
i apologize for being missunderstood.
i didn't mention that i would like to read the word document's prop's without
activating the doc (which ofcourse make it slower).
that why i can't use
activedocument.buildindocumentproperties
or add doc's to collection and then
use documents(index).buildin...

0
 
LVL 5

Accepted Solution

by:
yonat earned 200 total points
ID: 2307676
0
 

Author Comment

by:avi666
ID: 2318552
just what i was looking for
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Currently, there is an issue with being able to copy values from an external application to a dropdown list in Project Web Access (PWA).  The standard copy and paste methods don't seem to work properly. Here is a way to accomplish this task to s…
In this post, we will learn to set up the Group Naming policy and will see how it is going to impact the Display Name and the Email addresses of the Group.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question