Solved

Inserting the File summary via VBA (word)

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now