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
Solved

Inserting the File summary via VBA (word)

Posted on 2000-04-20
3
326 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

808 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