SHARE
TWEET

Untitled

a guest Jan 24th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top