Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2021, 10:35 AM
hanif hanif is offline Text form field Windows 10 Text form field Office 2019
Novice
Text form field
 
Join Date: Mar 2021
Posts: 2
hanif is on a distinguished road
Default Text form field


Hi All.

I have a form which has a Name field on top and once the name box is filled I would like it to be auto filled throughout the file in specific locations. I attached a sample file for better understanding. For example in the attached file I inserted a text form field which allow to insert a name and I would like it to be repeated wherever I highlighted yellow in the file.

I really appreciate if you can help me. Thank you all in advance.
Attached Files
File Type: docx Test.docx (11.9 KB, 3 views)
Reply With Quote
  #2  
Old 03-04-2021, 03:21 PM
macropod's Avatar
macropod macropod is online now Text form field Windows 10 Text form field Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 20,958
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

Simply insert cross-references to the formfield's internal bookmark (Name) wherever you want the data to appear, and check the formfield's 'calculate on exit' property. See attached.

No code required.

See also: https://www.msofficeforums.com/word/...html#post46429
Attached Files
File Type: docx FormField.docx (12.0 KB, 2 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-04-2021, 04:57 PM
Charles Kenyon Charles Kenyon is offline Text form field Windows 10 Text form field Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 7,240
Charles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to behold
Default

What Paul has said is true so long as you are using legacy form fields in documents that are protected for filling in forms. The "calculate on exit option" is slightly misnamed. It should read "Use this in other places in the document upon exit."



If you do not want that (very restrictive) form of restriction, use mapped content controls.
Reply With Quote
  #4  
Old 03-04-2021, 05:16 PM
macropod's Avatar
macropod macropod is online now Text form field Windows 10 Text form field Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 20,958
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

Quote:
Originally Posted by Charles Kenyon View Post
What Paul has said is true so long as you are using legacy form fields
Which the attachment shows is precisely what the OP is using...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 03-04-2021, 09:23 PM
gmayor's Avatar
gmayor gmayor is offline Text form field Windows 10 Text form field Office 2019
Expert
 
Join Date: Aug 2014
Posts: 3,406
gmayor is a name known to allgmayor is a name known to allgmayor is a name known to allgmayor is a name known to allgmayor is a name known to allgmayor is a name known to all
Default

Personally I would use a mapped content control and copies of that control. Whatever you enter in one will be repeated in the others. See attached.
Insert Content Control Add-In makes the insertion simple.
Attached Files
File Type: docx Test.docx (22.6 KB, 0 views)
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #6  
Old 03-05-2021, 02:27 AM
hanif hanif is offline Text form field Windows 10 Text form field Office 2019
Novice
Text form field
 
Join Date: Mar 2021
Posts: 2
hanif is on a distinguished road
Default

Thank you all so much for your help. with all your helps I believe I have solutions to all my enquiry now.

Cheers
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unsure why running a macro that generates text is deleting the legacy form field I want the text in Rakyn87 Word VBA 1 03-18-2019 02:12 PM
Text form field Text Form Field & REF Field cltay87 Excel 5 08-09-2017 07:27 PM
Macro to find coloured text and replace with form-field/formtext containing that text tarktran Word VBA 1 11-26-2014 08:12 AM
Text form field Form field selection allows entry into form text box David C Word 1 10-24-2012 04:53 AM
Text form field Form Fields - Create blank form text field with if statement? LAssist2011 Word 5 12-14-2011 03:02 PM

Other Forums: Access Forums - Senior Forums

All times are GMT -7. The time now is 06:22 PM.


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