Help for Microsoft® Office Outlook 2010

  • About Harmeet

    Harmeet

    loves to simplify technology for all readers who are interested in the genre but find it complex to comprehend. She is a writer by passion and wants to enrich the life of others by writing about the latest gadgets, apps, and devices in the simplest and the most useful manner. Her blogs are detailed, interesting, and definitely fun to read…

    1 Comment

    Be the first to comment!

    Leave a Reply
    • Vani

      Hi

      We have several outlook forms (with VBScript) and am running one in Office 2010. This one has several Word templates attached and based on Effective date criteria it is to save the suitable template and open an instance of the template as a document and populate values from variables.

      here is muy code that work well in Office 2002
      Set WrdApp = CreateObject("Word.Application") 'create word object

      Item.Attachments(1).SaveAsFile "Z:CSFTemplateName.dot"
      WrdApp.documents.Add "Z:CSFTemplateName.dot"
      WrdApp.Visible = True

      It does the SaveAsFile (I believe because it is too straightforward)
      Script Error
      Unknown runtime error:
      Failing on WrdApp.Documents.Add


      Can you shed any light ?


      0 Replies »

    Name: *
    E-mail: *
    Website:
    Comments: *
     

    Call Toll Free 1 877 889 6860
    Annual Unlimited Tech Support for just $179.99 per one PC