![]() |
|
#1
|
|||
|
|||
|
Hello All,
What is the equivalent syntax in Word 2010 vba for this wordbasic command? Code:
'pensionPolicies$ = pensioPolicies$ + ActiveDocument.MailMerge.Fields("pensionPolicies") <== old line of wordbasic code
I don't know what the plus sign does is this even close?
With ActiveDocument
.Variables.Add Name:="pensionPolicies$"
.Fields.Add Range:=Selection.Range, Type:=wdFieldDocVariable, Text:="pensionPolicies"
End With
Any help is greatly appreciated. Kurt |
|
#2
|
||||
|
||||
|
Cross-posted (and answered) at: http://www.vbaexpress.com/forum/showthread.php?t=44515
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Word 2010 Check box not working in Word 2007
|
Maverick494 | Word | 1 | 11-25-2012 10:40 PM |
Command line syntax for 2010
|
asearle | Word | 1 | 08-07-2012 05:42 AM |
| Word auto-repair differences between word 2007 - 2010. | Svekris | Word | 2 | 05-13-2012 03:12 AM |
Problem saving in Word 2007 a dotm Addin developed in Word 2010
|
RichardP | Word VBA | 6 | 04-26-2012 04:22 AM |
| Word 2003 macro to Word 2007 to 2010 to... | maruapo | Word VBA | 0 | 06-04-2010 03:43 PM |