Hello Everyone,
This is my first time on this forum because I've been stuck on this issue for a while now.
Basically I have five variables declared as strings/dates/times:
- tempStart
- tempEnd
- tempCurrency
- tempDealer
- InputDate
And I want this formula to be entered into the activecell (variables bolded):
=+BDH(tempCurrency &" "& tempDealer &" curncy","TRADE",TEXT(InputDate,"mm/dd/yyyy")&" "&TEXT(tempStart,"h:mm:ss AM/PM"),TEXT(InputDate,"mm/dd/yyyy")&""&TEXT(tempEnd,"h:mm:ss AM/PM"),"Dir=v","Dts=s","Sort=A","IntrRw=True","BrkrCodes=S","CondCodes=H")
Im having a hard time getting this into "vba code", can someone please help??
Thanks in advance,
Desperate Excel Rookie
This is my first time on this forum because I've been stuck on this issue for a while now.
Basically I have five variables declared as strings/dates/times:
- tempStart
- tempEnd
- tempCurrency
- tempDealer
- InputDate
And I want this formula to be entered into the activecell (variables bolded):
=+BDH(tempCurrency &" "& tempDealer &" curncy","TRADE",TEXT(InputDate,"mm/dd/yyyy")&" "&TEXT(tempStart,"h:mm:ss AM/PM"),TEXT(InputDate,"mm/dd/yyyy")&""&TEXT(tempEnd,"h:mm:ss AM/PM"),"Dir=v","Dts=s","Sort=A","IntrRw=True","BrkrCodes=S","CondCodes=H")
Im having a hard time getting this into "vba code", can someone please help??
Thanks in advance,
Desperate Excel Rookie