Home > Forum Home > Valuing Investments and Businesses > Work with Excel and Bloomberg | Share |
Forum Topic | Post Reply Login |
Work With Excel And Bloomberg | Rate this: (3/5 from 1 vote) |
Hi, I am going to develop one investment software in which I need to download data from Bloomberg. I can download using 'Bloomberg menubar' on Bloomberg workstation, but I want to do this programmatically by using Bloomberg API and excel VBA. Can anyone help me in this issue? | ||
Posted by jeevi on |
Replies - Displaying 1 to 10 of 21 | Order Replies By: Most Recent | Chronological | Highest Rated |
Rate this: (4/5 from 2 votes) An example of initiating and using this once logged in to Bloomberg could be: VBA Code:
Alternatively, you could download the Bloomberg ActiveX control (available from [http://about.bloomberg.com/software/api_tools.html]) and interact with that from within your Excel VBA Code. | ||
Excel Business Forums Administrator | ||
Posted by Excel Helper on |
Rate this: (4/5 from 2 votes) Thanks for your reply. I've already started my development using BB's ActivieX control for VBA and for now I should do my development on BB installed/licensed machine. Then only I can download data from BB. Is this an only way to develop an application using the BB API? Can I use the following code to contact BB from a non-BB licensed (my development) machine? VBA Code:
Thank you once again and looking forward to your reply. | ||
Posted by jeevi on |
Rate this: (4/5 from 2 votes) One possibility would be to use VBA code to initiate the Bloomberg login window and then use a Send Keys command to enter the credentials. VBA Code:
| ||
Excel Business Forums Administrator | ||
Posted by Excel Helper on |
Rate this: (3/5 from 1 vote) | |
Posted by alangrn on |
Rate this: (3/5 from 1 vote) Sorry! After long time I come back to you. Thanks for your reply. Currently, I have just split my BB data downloading code in VBA from other part of my module because later on I can just add that Excel VBA file into my project. Alangrn, If you have a Bloomberg licenced machine, then you can download the documentation for VBA, .NET...etc from Bloomberg's help itself. | |
Posted by jeevi on |
Rate this: (3/5 from 1 vote) If you know then just look at the WAPI on the BB or BBXL. If you use ActiveX (which is a lot better than DDE) then you do not have to be logged into Bloomberg but you have to be on a BB computer. Also you must add the BB data type lib to your macro references. If you are doing this for work then ignore the DDE statements in this post. ActiveX is required to use if you want some form of stability. | |
Posted by freddiemac on |
Rate this: (3/5 from 1 vote) | |
Posted by freddiemac on |
Rate this: (3/5 from 1 vote) If we use DDE, can we still download BB data from non-BB computer by providing authentication information? Also, can you tell me more about DDE and difference in using DDE and ActiveX Control? and, can we use excel vba to work with DDE? Actually, I want to download large amount of historical data from BB and now I am using ActiveX object to do that. My concern here is that I would like to keep my program away from the BB computer. Is there any other suggestion on this? Thanks in advance. | |
Posted by jeevi on |
Rate this: (3/5 from 1 vote) I strongly advice against using DDE. When using ActiveX asynchronous request, subscription by request you can send a matrix to BB and get a matrix back ie you only have to ask one question to BB even though you want eg 10 diffenets info fields for 150 different securities. VBA usually hangs when you have a long loop which you have to have when using DDE. Thus DDE is by no means recommended (if you want to keep your job..). ActiveX is a bit more trick since you have a class module. However by using the example I reffered you to you only have to modify a bit in order for it to work so you really dont need to know much programming. Please let me know if I can further assit you! HTH | |
Posted by freddiemac on |
Rate this: (3/5 from 1 vote) | |
Posted by freddiemac on |
Displaying page 1 of 3 | Next |