RE: [External] Word 2013: Author variable

Subject: RE: [External] Word 2013: Author variable
From: "Chinell, Bear BIS" <David -dot- Chinell -at- fs -dot- utc -dot- com>
To: "salt -dot- morton -at- gmail -dot- com" <salt -dot- morton -at- gmail -dot- com>, Debra Kahn <kahndebra -at- gmail -dot- com>
Date: Fri, 2 May 2014 17:47:30 +0000

Chris:

Now Iâm confused. The built-in property field is just âAuthor.â Where does DocAuthor come from? Is it a fillin field youâve created or what? If itâs a field provided by the IT folks at your site, you shouldnât be dinking with it, I donât think.

If your userâs File > Options > General > User Name values are correct, you could try to populate the DocAuthor field with the User Name value using the Document_New event in your template. It would look like:


Private Sub Document_New()

' Set the value of the built-in document property Author to the userâs User Name

ActiveDocument.CustomDocumentProperties(âDocAuthorâ).Value = ActiveDocument.BuiltInDocumentProperties("Author").Value

On Error Resume Next

End Sub


This only runs once, when a new document is created from your template.

If youâre fine with the users entering their name, but want to reuse that value within your document, you could present it to them in a document control block, where the initial value has character styling. You can then use the STYLEREF field in the remainder of your document to repeat whatever value theyâve entered.

Bear

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Doc-To-Help 2014 v1 now available. SharePoint 2013 support, NetHelp enhancements, and more. Read all about it.

Learn more: http://bit.ly/NNcWqS

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-leave -at- lists -dot- techwr-l -dot- com


Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwhirl.com/email-discussion-groups/ for more resources and info.

Looking for articles on Technical Communications? Head over to our online magazine at http://techwhirl.com

Looking for the archived Techwr-l email discussions? Search our public email archives @ http://techwr-l.com/archives


Previous by Author: RE: [External] Word 2013: Author variable
Next by Author: Re: Structured writing = commodified writing
Previous by Thread: RE: Categorize Import/Export
Next by Thread: The word "documentarian"


What this post helpful? Share it with friends and colleagues:


Sponsored Ads