Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-13-2016, 01:31 PM
luis.carrion luis.carrion is offline UserName Windows 7 64bit UserName Office 2010 64bit
Novice
UserName
 
Join Date: Dec 2016
Posts: 2
luis.carrion is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 12-13-2016, 03:36 PM
macropod's Avatar
macropod macropod is offline UserName Windows 7 64bit UserName Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 12-13-2016, 07:13 PM
luis.carrion luis.carrion is offline UserName Windows 7 64bit UserName Office 2010 64bit
Novice
UserName
 
Join Date: Dec 2016
Posts: 2
luis.carrion is on a distinguished road
Default

what i need is to send it with the user name blank and once they open it, it would automatically add their user name.
Reply With Quote
  #4  
Old 12-13-2016, 07:19 PM
macropod's Avatar
macropod macropod is offline UserName Windows 7 64bit UserName Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #5  
Old 12-14-2016, 05:14 PM
Guessed's Avatar
Guessed Guessed is offline UserName Windows 10 UserName Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
Reply

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
UserName 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
UserName word macro username Swarv Drawing and Graphics 4 06-16-2010 09:05 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft