Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default vba & bloomberg (gethistoricaldata2)

i am trying to get gethistoricaldata2 to function as a free-standing
sub to get a better understanding of it.
i cannot seem to get it to work. my code is below and any pointers
would be a huge help

Dim BlpControl As BBData

public Sub A()
Dim nRow As Integer
Dim nColumn As Integer
Dim vtSecurities As Variant
Dim vtfields As Variant
Dim dtStart As Date
Dim dtEnd As Date
Dim BbgTick As BLP_DATA_CTRLLib.BlpData
Dim vtseclist
Dim dtStartDate
Dim dtEndDate

vtfields = "Price"
vtseclist = "CCC US EQUITY"
dtStartDate = "8/10/2009"
dtEndDate = "8/10/2009"

BbgTick.SubscriptionMode = BySecurity
BbgTick.AutoRelease = False




If BlpControl Is Nothing Then Set BlpControl = New BBData
BbgTick.GetHistoricalData2 vtseclist, nCookie, vtfields,
dtStartDate, "USD", dtEndDate, 0


End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default vba & bloomberg (gethistoricaldata2)

This request is too vague to answer. From the code provided I can't tell
where or how the source data was input into the orignal macro. the data
could of come from one of the following

1) Web Query
2) A text file on the PC
3) An internet explorer application

I went back and look at your previous postings and nothing relates to this
request. Post the original macro and I may be able to help.



"jason" wrote:

i am trying to get gethistoricaldata2 to function as a free-standing
sub to get a better understanding of it.
i cannot seem to get it to work. my code is below and any pointers
would be a huge help

Dim BlpControl As BBData

public Sub A()
Dim nRow As Integer
Dim nColumn As Integer
Dim vtSecurities As Variant
Dim vtfields As Variant
Dim dtStart As Date
Dim dtEnd As Date
Dim BbgTick As BLP_DATA_CTRLLib.BlpData
Dim vtseclist
Dim dtStartDate
Dim dtEndDate

vtfields = "Price"
vtseclist = "CCC US EQUITY"
dtStartDate = "8/10/2009"
dtEndDate = "8/10/2009"

BbgTick.SubscriptionMode = BySecurity
BbgTick.AutoRelease = False




If BlpControl Is Nothing Then Set BlpControl = New BBData
BbgTick.GetHistoricalData2 vtseclist, nCookie, vtfields,
dtStartDate, "USD", dtEndDate, 0


End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
BDP/BDH/BDS functions in Bloomberg [email protected] Excel Programming 0 February 15th 08 09:03 AM
Bloomberg links Jim Jackson Excel Programming 1 July 11th 06 08:02 AM
Bloomberg [email protected] Excel Programming 0 August 23rd 05 12:53 PM
DDE links to Bloomberg DMG Excel Discussion (Misc queries) 2 March 10th 05 08:38 PM
bloomberg API Jena Excel Programming 0 January 20th 04 07:02 PM


All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"