+ Reply to Thread
Results 1 to 6 of 6

ActiveX component can't create object: 'Excel.Application'

  1. #1
    Registered User
    Join Date
    06-23-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    9

    ActiveX component can't create object: 'Excel.Application'

    Hi,
    I have sql stored proc that creates a bunch of CSV's and saves the results to a separate server.
    At the end of the SQL script I execute a VBScript to consolidate the csv's based on some parameters.
    The server where the CSVs are saved has excel installed. The server where the SQL proc is executed does not have excel installed.
    When the VBScript is executed, the folder structure is created, however I get the following error:
    Microsoft VBScript runtime error: ActiveX component can't create object: 'Excel.Application'

    Any thoughts on how to complete this process without installing excel on the SQL server would be greatly appreciated.
    Thanks!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: ActiveX component can't create object: 'Excel.Application'

    Where is the VBScript executed/located?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-23-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: ActiveX component can't create object: 'Excel.Application'

    Sorry, the Script is saved on the Excel server where the files are being saved.
    I am executing the VB Script as part of my SQL server stored procedure which is being executed on the SQL Server.
    So Execute Stored Proc on SQL Server, files are saved on Excel Server. Then from the SQL Server I execute a VBScript that is stored on the excel server.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Are you sure the VBScript is being executed on the Excel Server?

    Have you tried using VBScript, stored on the Excel server, to execute the stored procedure(s)?

    That script could then execute the script that automates Excel.
    Last edited by Norie; 09-18-2013 at 08:32 AM.

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: ActiveX component can't create object: 'Excel.Application'

    Perhaps you must state the server name in the CreateObject function
    Please Login or Register  to view this content.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Totally forgot about the servername argument.:o

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. For the Mac Run-time error 429 ActiveX component can't create object
    By Jsalisbury in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2021, 04:56 AM
  2. Error 429: ActiveX component can't create object
    By manali7120 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2013, 01:31 PM
  3. VBA Excel : Run time error '429': ActiveX component can't create object
    By devendravitm in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-20-2013, 02:07 PM
  4. Run-time error '429' ActiveX component can't create object
    By gamaz in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-29-2012, 10:24 PM
  5. [SOLVED] Run-time-error '429': ActiveX component can't create object
    By Lloyd Blankfein in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-28-2012, 07:21 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1