Guest User

Untitled

a guest
Jan 24th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. Function MyFunc(rs as DAO.Recordset)
  2. Dim objWord As Object
  3. Dim objDoc As Object
  4. ...
  5. Set objWord = CreateObject("Word.Application")
  6. Set objDoc = objWord.Documents.Open("C:test_template.docx")
  7. ...
  8. End Function
  9.  
  10. Public Const ReminderOneTemplate As Variant = "C:test_template.docx"
  11. ...
  12. Function MyFunc(rs as DAO.Recordset)
  13. Dim objWord As Object
  14. Dim objDoc As Object
  15. ...
  16. Set objWord = CreateObject("Word.Application")
  17.  
  18. Set objDoc = objWord.Documents.Open(ReminderOneTemplate)
  19. ...
  20. End Function
  21.  
  22. Set objDoc = objWord.Documents.Open(Chr(34) & ReminderOneTemplate & Chr(34))
  23. ...
  24. End Function
Add Comment
Please, Sign In to add comment