![]() |
|
#1
|
|||
|
|||
|
I want to ask the document-template-user to insert his name. And then his name automaticly get copied to different places around the document.
This is working: I have Text From Field, I double-click it and insert the name to 'Default text', and I write to bookmark field 'testBookmark'. I got { REF testBookmark } all over the document. I select the whole document and update by pressinf F9. And voilą! This is what I want: I want more sophisticated approach of inserting the name. For example using ASK-field that is launched by doubleclicking MacroButton. The sub of the MacroButton is: Code:
Sub Macro3()
' Macro3 Macro
' Launch ASK-field and update the REF-fields
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"ASK testBookmark ""Write your name here"" \d First name Last name \o ", PreserveFormatting:=True
Selection.WholeStory
Selection.Fields.Update
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
office 2003 - "to" field problem in new email
|
bruce_hyman | Outlook | 2 | 10-25-2010 08:04 PM |
| How to refer a field in another field | DaveSmith | Word | 0 | 08-24-2010 06:44 PM |
| merge field formatting problem with "text to be inserted before" | wissam | Mail Merge | 0 | 12-13-2009 12:50 AM |
| Field Help | BChianciola | Word | 0 | 11-09-2009 01:14 PM |
Text Form Field formatting problem
|
Toshii | Word | 1 | 06-08-2009 07:21 PM |