Solved

Inserting the File summary via VBA (word)

Posted on 2000-04-20
3
328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

734 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