Consulting

Results 1 to 3 of 3

Thread: VBScript and Excel Addins

  1. #1
    VBAX Regular
    Joined
    Aug 2009
    Posts
    9
    Location

    VBScript and Excel Addins

    Hi,
    I have a few add-ins that are launched when Excel start. If I go in the VBA editor, I see all the addins in the VBAProject panel.
    But here is the problem:
    Im trying to launch Excel with a VBScript. The addins are ticked in Tools -> Add-Ins but in VBA I see nothing and the addins are not launch at the start of excel (I can see it since they are big it takes time to launch them!).
    here is the sort of VBScript Im using:
    Set objExcel = CreateObject("Excel.Application")
    objExcel.Visible = True
    Very simple, but it doesnt do the same thing as when I launch Excel by myself.
    Does anyone has an idea ?
    Swan

  2. #2
    VBAX Contributor
    Joined
    Dec 2009
    Location
    Sevastopol
    Posts
    150
    Location
    Hi Swan,

    Even being ticked, the VBA Add-Ins are not loaded in automation mode.
    Only COM Add-Ins are loaded in this case.

    You can find some details on using of VBScript for Add-Ins loading in this link:
    Histogram macro / atpvbaen cannot be found

    Here is explanation from MS: Add-ins do not load when using the CreateObject command in Excel

    Regards,
    Vladimir

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    If you had a loading macro in Personal, you could try something like

    [VBA]objExcel.Run "Personal.xls!LoadAddIns"[/VBA]

    [VBA]
    Sub LoadAddIns()
    AddIns("Euro Currency Tools").Installed = True
    AddIns("Internet Assistant VBA").Installed = True
    End Sub

    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

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