• Active X problem with Outlook form

    • This topic has 2 replies, 2 voices, and was last updated 24 years ago.
    Author
    Topic
    #355852

    I have a form that calls up Excell. I am get the following error: “Active X compenent can’t create object “Create Object” Anybody have any suggestions?

    ‘-=-=-=-=-=-=-=-=-=-=-=-=-
    ‘Call Excel
    Sub cmdExcel_click()
    Set objWSHShell = CreateObject(“WScript.Shell”)
    objWSHShell.Run(“excel.exe tabsproddatabaseedgarsecurityterm2001.xls “)
    end sub
    ‘-=-=-=-=-=-=-=-=-=-=-=-=-

    Viewing 0 reply threads
    Author
    Replies
    • #525671

      How about:

      Dim objApp as excel.application
      set objApp = CreateObject(“excel.application”)

      With objApp
      .Workbooks.Add (“tabsproddatabaseedgarsecurityterm2001.xls “)
      End With

      • #525673

        Getting “expect end statement” and points to “set objAdd” line.

        Dim objApp as excel.application
        set objApp = CreateObject(“excel.application”)
        With objApp
        .Workbooks.Add (“tabsproddatabaseedgarsecurityterm2001.xls “)
        End With

    Viewing 0 reply threads
    Reply To: Active X problem with Outlook form

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: