/build/static/layout/Breadcrumb_cap_w.png

vbs assistance please.

I'm trying to figure out what this script does. I believe the person's intentions were to have a drop down menu in excel with the features of this particular addin. Can someone take a look and let me know where the issue are?


_____START____

Dim oXL, oAddin

Set oXL = CreateObject("Excel.Application")
oXL.Application.DisplayAlerts = False
oXL.Workbooks.Add
oXL.AddIns("tbatoolkit").Installed = False
Set oAddin = oXL.AddIns.Add("tbCredit.tbAddin", True)
oAddin.Installed = True
Set oAddin2 = oXL.AddIns.Add("C:\Program Files\myaddin\tba\Addins\tbaToolkit.xla", True)
oAddin2.Installed = True
oXL.Quit
Set oXL = Nothing

____END____

0 Comments   [ + ] Show comments

Answers (3)

Posted by: aogilmor 17 years ago
9th Degree Black Belt
0
visit the vba forums in microsoft.
Posted by: Secondlaw 17 years ago
Third Degree Blue Belt
0
Ok, I've figured out exactly what this script does. Does anyone know how I can reverse what it's doing? I would assume is workbook.remove, but 'remove' doesn't seem like a function. What would be the correct way to do this?

Thanks
Posted by: slb 17 years ago
Purple Belt
0
Try this.. (not very sure, please check)

Dim oXL, oAddin

Set oXL = CreateObject("Excel.Application")
oXL.Application.DisplayAlerts = False

Set oAddin2 = oXL.AddIns.Add("C:\Program Files\myaddin\tba\Addins\tbaToolkit.xla", False)
oXL.Workbooks.Add
oAddin2.Installed = False
oXL.Quit
Set oXL = Nothing

Hope this helps
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ