Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Houston, Texas, USA
    Posts
    432
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Active X problem with Outlook form

    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
    '-=-=-=-=-=-=-=-=-=-=-=-=-

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Active X problem with Outlook form

    How about:

    Dim objApp as excel.application
    set objApp = CreateObject("excel.application")

    With objApp
    .Workbooks.Add ("tabsproddatabaseedgarsecurityterm2001.xls ")
    End With
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Houston, Texas, USA
    Posts
    432
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Active X problem with Outlook form

    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

Posting Permissions

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