Solved

Inserting the File summary via VBA (word)

Posted on 2000-04-20
3
325 Views
Last Modified: 2008-03-17
Anybody know how to fill in details of the File summary (within word) using VBA. Ie, details such as Description, Author, etc.
Thanks in advance,
Martin.
0
Comment
Question by:mrbud
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
calacuccia earned 50 total points
ID: 2734779
Hi MrBud,

To loop through all the properties of File Summary, do this:

Sub GetFileSummaryInfo()
'Read From
a = ActiveDocument.BuiltInDocumentProperties("Author")
'Write to
ActiveDocument.BuiltInDocumentProperties("Subject") = "mrBud"
End Sub

The list of arguments between "" is here:


Title
Subject
Author
Keywords
Comments
Template
Last Author
Revision Number
Application Name
Last Print Date
Creation Date
Last Save Time
Total Editing Time
Number of Pages      
Number of Words
Number of Characters
Security
Category
Format
Manager
Company
Number of Bytes
Number of Lines
Number of Paragraphs
Number of Slides
Number of Notes
Number of Hidden Slides
Number of Multimedia Clips

They should be used between " " in the BuiltInDocumentProperties("Fill in here")

Good Luck
Calacuccia
0
 

Author Comment

by:mrbud
ID: 2735098
Thanks for that.  I'll complete the accept/Reject on Tuesday.
Regards.
0
 

Author Comment

by:mrbud
ID: 2746738
Thanks for the info.  Works within word, hence the points however I told slight porkies with the original question.  I actually need the code for a standard VB application created, not VBA.  If you have any thought/ideas on this it really is appreciated,

Regards

Martin.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA open file from excel cell 4 42
using Access 8 68
vb6 connector to mongodb 2 84
How to hault or freeze parent form when a 2d form is open in vb6 3 38
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

810 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