Results 1 to 3 of 3

Thread: Can anyone please help?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    175
    Hi,
    When I use the following Code

    Dim WrdApp As Object
    Set WrdApp = CreateObject("word.application")

    I get "OLE Automation server can't create object" Error,
    Can you tell me why?
    Mass

  2. #2
    Guest
    Originally posted by Mass
    Hi,
    When I use the following Code

    Dim WrdApp As Object
    Set WrdApp = CreateObject("word.application")

    I get "OLE Automation server can't create object" Error,
    Can you tell me why?
    Try:

    Set WrdApp = CreateObject(, "word.application")
    or
    Set WrdApp = CreateObject("", "word.application")

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    175

    when I use

    Set WrdApp = CreateObject(, "word.application")
    I get (aruments not optional)

    and With

    Set WrdApp = CreateObject("", "word.application")

    I get (Wrong number of aruments) error
    Mass

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width