After spending the last 2 days tying to get this to work, I am finally reaching out to the community. I have tried multiple variations of the code below including many of the examples that have been posted on to here and other sites. To keep it simple, this is what I have:
Dim Excel
Set Excel = CreateObject("Excel.Application")
Excel.Visible = True
AddIns("QzData Excel Addin").Installed = True
Essentially I am trying to use a script to open an excel file and run a macro. This macro requires me having the "QzData Excel Addin" installed. For simplicity I am just trying to get this working with a new excel sheet as I already have the correct code to open my actual file.
I have tried to run the above as a script (.vbs) and in Excel VBA itself and am getting a "subscript out of range" error.