Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
Dim filepath As String Dim oApp As Object 'Path to the word documentto use filepath = "c:\text.doc" ' If IsNull(filepath) Or filepath = "" Then MsgBox "Document not found - please check" Else 'Create an instance of MS Word Set oApp = CreateObject(Class:="Word.Application") oApp.Visible = True 'Open the Document oApp.Documents.Open FileName:=filepath ' specify the fields to be updated (commented out here) ' with doc '.FormFields("fldCountry").Result = Me!Country '.Visible = True '.Activate 'End With End If ' End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.