+ Reply to Thread
Results 1 to 3 of 3

code for executing Bloomberg BDH function in the middle of a macro

  1. #1
    Registered User
    Join Date
    08-24-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2010
    Posts
    46

    code for executing Bloomberg BDH function in the middle of a macro

    I'm hoping someone is familar with Bloomberg excel functions in VBA. My below code doesn't debug but the results it provides in my cell is: "#N/A N Ap"

    Any help would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: code for executing Bloomberg BDH function in the middle of a macro

    Remove the .Value from this line.

    finalDate = CLng(Evaluate("=IF(E2<>"""",E2,B3)").Value)
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    08-24-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: code for executing Bloomberg BDH function in the middle of a macro

    I get the same results AlphaFrog

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. executing an UDF function in excel file from c# code
    By ahmedSmida in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2013, 10:18 AM
  2. Macro Excel Bloomberg to get last price of each day? (BDH function)
    By bryan444 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2012, 02:23 PM
  3. [SOLVED] do anybody have a sample code for executing excel macro from vb code?<eom>
    By B Deepak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2005, 05:05 AM
  4. code sample for executing a VB function in Excel using perl
    By Harlan Grove in forum Excel Formulas & Functions
    Replies: 42
    Last Post: 09-06-2005, 07:05 PM
  5. [SOLVED] code sample for executing a VB function in Excel using perl
    By newOLE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1