#1
|
|||
|
|||
UserName
I have a word document that i need for automatically put the username of the person that open the document. but ones is open once i need it to save it and not to change it anymore.
I try using quick parts tool but its not really working. |
#2
|
||||
|
||||
What you're inserting via Quick Parts is a field, and these are intended to update. If you want to prevent the field updating, you have to either lock or unlink it; the latter converts it to text.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
what i need is to send it with the user name blank and once they open it, it would automatically add their user name.
|
#4
|
||||
|
||||
Do you already have VBA code to at least update the username field, which I assume you've already placed in the document? If so, it's just a matter of either locking that field or unlinking it. What is the code you are using? If you haven't already done the coding, how do you propose to prevent the process running when the document is opened before it is sent? Do you propose that the process runs once, or every time the document is opened (i.e. the data are to be added for every user & time the document is opened)? Do you realise that the entire process will fall over if the user disables macros and/or closes the document without saving?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
||||
|
||||
If the document is a template and already on the user's hard drive, when they double click it to 'open' it, they actually get a New unsaved document which has their username assigned to the Author field. This is achieved without macros and is standard behaviour for Word. You can simply include the Author Content Control in your document to display this (Insert > Quick Parts > Document Property > Author). Then the new document can be saved and the author name for that document won't change without someone choosing to do so.
However, if you are sending the file to them in an email, they are actually opening the template itself so the Author name would remain as per the template.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Username / Password box repeatedly popping up | Lagann | Outlook | 0 | 11-03-2015 07:42 PM |
Is there a way to turn the Username into a Document Property? | MNChica | Word | 2 | 04-29-2015 05:38 AM |
Tracking document usage by domain username | MelHerndon | Word | 1 | 01-17-2013 06:45 AM |
Resolving username in outlook message body | ParagKale | Outlook | 0 | 11-16-2012 06:55 AM |
word macro username | Swarv | Drawing and Graphics | 4 | 06-16-2010 09:05 AM |