I am working on a project to have the properties in Microsoft Word autimatically populate. Each document that I want this to happen has specific paragraghs. One is a Subject line. The other is a summary line.
I want the Subject line in the document to populate, both the Title and the Subject Line in the Microsoft properties window. The summary, should populate an add in field named Description.
I tried using VB and book marks, but it would not hold in a template. Additionally it still required me to add the book marks to each document.
If I had to do that , I might as well just cut and paste the information there, and that defeats my attempt of automation.
The purpose of this is so that I can organize all my documents on a digital dash board in sharepoint. This is not a company project but more of a learning endeavor.
Here is my failed attempt code. Although it is fair to note that the description worked if I add the macro to every document.
_________________________-
Private Sub Document_Open()
With ActiveDocument
.BuiltInDocumentProperties("Subject")=.Bookmarks("Subject").[login to view URL]
.BuiltInDocumentProperties("Text")=.Bookmarks("Subject").[login to view URL]
On Error Resume Next
.[login to view URL] Name:="Description", LinkToContent:=False, Value:"", Type:msoPropertyTypeString
.CustomDocumentProperties("Description")=.Bookmarks("Description").[login to view URL]
End With
End Sub
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Complete ownership and distribution copyrights to all work purchased.
## Platform
I use 2 computers.
1. runs windows and office XP
[login to view URL] other runs windows and office 2000
All documents will hopefully load to SharePoint portal server, but that is not really relevant.
## Deadline information
This is probably an easy VBS code. It needs to run globally for all word documents, mostlikely in the [login to view URL] template so that it will be applied universally to all documents.