Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2016, 04:21 AM
ArtKilp ArtKilp is offline Named text field in Word document Windows 8 Named text field in Word document Office 2016
Novice
Named text field in Word document
 
Join Date: Jan 2016
Posts: 18
ArtKilp is on a distinguished road
Default Named text field in Word document

In Excel I can say =A1 to read whatever there is in cell A1 and if I want to name it, I just type a name in the Name Box. I'd want the same thing for Word, what is the preferred approach?

That is, I want to have an array of copies of a document which I first programmatically generate so that each one has a name (one of those named text fields) and an address (another of those fields). Then when people have filled in the address and I have all the similar documents somewhere, I want to read programmatically all of those addresses and save them somewhere (where, that is out of subject, assume a VBA array for example).

Some options I have considered are ActiveX controls and Word fields. Word fields would be preferred, but they seem to be working vice versa - Word fills automatically stuff in the field instead of you telling Word that "list me the content of fields named 'name' and 'address'". So, when I say mygivendocument.namedfield("address").content (or whatever the syntax would be), I get the content of that address field just like that.



Another limitation is that I want to create those fields without using VBA code - that is, I can create the business logic by VBA, but I want to assign a non-programmer user to create those fields (because he will create the document "decorations" as well).

So what would the best approach be?
Reply With Quote
  #2  
Old 01-27-2016, 04:57 AM
Charles Kenyon Charles Kenyon is offline Named text field in Word document Windows 8 Named text field in Word document Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,081
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Bookmarks?
Reply With Quote
  #3  
Old 01-27-2016, 05:49 AM
gmayor's Avatar
gmayor gmayor is offline Named text field in Word document Windows 10 Named text field in Word document Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Maybe - http://www.gmayor.com/ExtractDataFromForms.htm will give you a few ideas?
__________________
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
  #4  
Old 01-27-2016, 06:15 AM
ArtKilp ArtKilp is offline Named text field in Word document Windows 8 Named text field in Word document Office 2016
Novice
Named text field in Word document
 
Join Date: Jan 2016
Posts: 18
ArtKilp is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
Bookmarks?
So if I have a bookmark called "address", that needs to point to a certain... field? in order for me to be able to extract the data from there?

Quote:
Originally Posted by gmayor View Post
Maybe - http://www.gmayor.com/ExtractDataFromForms.htm will give you a few ideas?
I'll give this a try, thanks!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Named text field in Word document duplicating field values in a word document howarths Word 5 11-05-2015 11:50 AM
Named text field in Word document Changing Field Links in a Word Document from one excel file to another Fed77 Word VBA 9 07-08-2015 02:24 AM
Need a Macro to go to column named price and ADD 16% to each field okief1122 Excel Programming 4 09-06-2014 10:59 PM
Named text field in Word document Inserting text field into word document BeataG Word VBA 2 01-03-2014 12:56 AM
Dynamic Named Ranges using text hannu Excel 0 06-22-2010 04:42 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:04 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