#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
Bookmarks?
|
#3
|
||||
|
||||
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 |
#4
|
|||
|
|||
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:
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
duplicating field values in a word document | howarths | Word | 5 | 11-05-2015 11:50 AM |
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 |
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 |