Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function MyFunc(rs as DAO.Recordset)
- Dim objWord As Object
- Dim objDoc As Object
- ...
- Set objWord = CreateObject("Word.Application")
- Set objDoc = objWord.Documents.Open("C:test_template.docx")
- ...
- End Function
- Public Const ReminderOneTemplate As Variant = "C:test_template.docx"
- ...
- Function MyFunc(rs as DAO.Recordset)
- Dim objWord As Object
- Dim objDoc As Object
- ...
- Set objWord = CreateObject("Word.Application")
- Set objDoc = objWord.Documents.Open(ReminderOneTemplate)
- ...
- End Function
- Set objDoc = objWord.Documents.Open(Chr(34) & ReminderOneTemplate & Chr(34))
- ...
- End Function
Add Comment
Please, Sign In to add comment