View Single Post
 
Old 02-13-2017, 02:39 PM
gmaxey gmaxey is offline Windows 7 32bit Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Yes you need to put targets (bookmarks, table cells, content controls) in your target document template. Lets say you rename LaborAuthorizationForm.docm as LaborAuthorizationForm.dotm and in it you have a content control titled "Employee Name"

Replace MsgBox EmpNameList.List(lngIndex, 0)

oDoc.SelectionContentControlsByTitle("Employee Name").Item(1).Range.Text = EmpNameList.List(lngIndex, 0)
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote