Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-27-2012, 12:36 PM
kdnichols1 kdnichols1 is offline Word 2007 to Word 2010 vba syntax Windows 7 64bit Word 2007 to Word 2010 vba syntax Office 2010 64bit
Novice
Word 2007 to Word 2010 vba syntax
 
Join Date: Nov 2012
Posts: 1
kdnichols1 is on a distinguished road
Smile Word 2007 to Word 2010 vba syntax


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
Can anyone clue me in?

Any help is greatly appreciated.

Kurt
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2007 to Word 2010 vba syntax Word 2010 Check box not working in Word 2007 Maverick494 Word 1 11-25-2012 10:40 PM
Word 2007 to Word 2010 vba syntax 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
Word 2007 to Word 2010 vba syntax 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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:50 AM.


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