![]() |
|
|
Thread Tools | Display Modes |
#6
|
||||
|
||||
![]()
In that case, you should be able to create a new document & populate the formfields using code like:
Code:
Dim wdApp As Object, wdDoc As Object On Error Resume Next Set wdApp = GetObject(, "Word.Application") If wdApp Is Nothing Then Set wdApp = CreateObject("Word.Application") End If On Error GoTo 0 With wdApp Set wdDoc = .Documents.Add("template path & name") With wdDoc .Formfields("EmployID").Result = Me.cboID.Value .Formfields("FName").Result = Me.txtFName.Value .Formfields("GName").Result = Me.txtGName.Value .Formfields("DOB").Result = Me.txtDOB.Value End With End With
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Value of Combobox in other userform | Vibov | Excel Programming | 4 | 11-19-2015 04:12 AM |
![]() |
wpryan | Word VBA | 3 | 07-17-2015 01:44 AM |
![]() |
ADubin | Excel Programming | 3 | 02-08-2015 04:57 AM |
Mail merge, text boxes, and two documents per sheet! | MelissaAnnie | Mail Merge | 2 | 09-24-2014 03:46 PM |
Condensing a spread sheet | hawkeyefxr | Excel | 4 | 08-22-2012 05:17 AM |