Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Inserting the File summary via VBA (word)

Posted on 2000-04-20
3
Medium Priority
?
332 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 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

885 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