solitude
New Member
- Joined
- Aug 16, 2011
- Messages
- 11
I'm trying to run some excel macros through VBScript. The code also uses Bloomberg addin. Now, I know that VBScript by default switches addins off so in the script I have lines that add Bloomberg addin.
Problem is - while debugging, I get 'NAME' errors in cells that use Bloomberg functions. Though when I go to each cell and do "F2+Enter", it works and I get the desired values. The Bloomberg functions even appear in a drop-down when I go to a cell and start typing a formula. So, I'm not sure what's wrong.
The code I'm using is this -
I'm using Excel 2007 on Windows Xp (shared terminal).
Any help is much appreciated.
Problem is - while debugging, I get 'NAME' errors in cells that use Bloomberg functions. Though when I go to each cell and do "F2+Enter", it works and I get the desired values. The Bloomberg functions even appear in a drop-down when I go to a cell and start typing a formula. So, I'm not sure what's wrong.
The code I'm using is this -
Code:
Dim xlApp
Dim bbgAddin
set xlApp = CreateObject("Excel.Application")
Set bbgAddin = xlApp.AddIns.Add("path to bloomberg addin")
xlApp.Addins("Bloomberg Excel Tool").Installed = False ' Need addin's name here
xlApp.Addins("Bloomberg Excel Tool").Installed = True
I'm using Excel 2007 on Windows Xp (shared terminal).
Any help is much appreciated.