Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 516
Default Programming Function

I'm attempting to program a new function that includes other functions
provided by Bloomberg professional service. The end result needs to look
like this:

BDP("AUD Curncy","LAST_PRICE")

The AUD Curncy is Bloomberg's security code, which I will be getting from
two separate cells. I am able to put the two cells together as follows:

BBCODE = AUD
BBKEY = Curncy
FULLBBCODE = BBCODE & BBKEY

My problem is that I need to get quotation marks around the FULLBBCODE in
the VBA code. When I've tried """ & FULLBBCODE &""" it just returns that
exact text, not what FULLBBCODE represents. Hope I've explained this enough,
any help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Programming Function

One more each time

"""" & FULLBBCODE & """"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Matt" wrote in message
...
I'm attempting to program a new function that includes other functions
provided by Bloomberg professional service. The end result needs to look
like this:

BDP("AUD Curncy","LAST_PRICE")

The AUD Curncy is Bloomberg's security code, which I will be getting from
two separate cells. I am able to put the two cells together as follows:

BBCODE = AUD
BBKEY = Curncy
FULLBBCODE = BBCODE & BBKEY

My problem is that I need to get quotation marks around the FULLBBCODE in
the VBA code. When I've tried """ & FULLBBCODE &""" it just returns that
exact text, not what FULLBBCODE represents. Hope I've explained this
enough,
any help would be greatly appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 516
Default Programming Function

Tried it, didn't work the way I was hoping. It does return AUD Curncy in a
cell, but I think I didn't provide enough information about the problem. So
in my code, I want to execute the Bloomberg function which works fine if I
manually put in Function = [BDP("AUD Curncy","LAST_PRICE")] but does not work
when I substitute the variable below, that's when I have problems. Any ideas?

"Bob Phillips" wrote:

One more each time

"""" & FULLBBCODE & """"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Matt" wrote in message
...
I'm attempting to program a new function that includes other functions
provided by Bloomberg professional service. The end result needs to look
like this:

BDP("AUD Curncy","LAST_PRICE")

The AUD Curncy is Bloomberg's security code, which I will be getting from
two separate cells. I am able to put the two cells together as follows:

BBCODE = AUD
BBKEY = Curncy
FULLBBCODE = BBCODE & BBKEY

My problem is that I need to get quotation marks around the FULLBBCODE in
the VBA code. When I've tried """ & FULLBBCODE &""" it just returns that
exact text, not what FULLBBCODE represents. Hope I've explained this
enough,
any help would be greatly appreciated.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 373
Default Programming Function

How about chr(34) & FULLBBCODE & chr(34)
Does that work?

"Matt" wrote in message
...
Tried it, didn't work the way I was hoping. It does return AUD Curncy in
a
cell, but I think I didn't provide enough information about the problem.
So
in my code, I want to execute the Bloomberg function which works fine if I
manually put in Function = [BDP("AUD Curncy","LAST_PRICE")] but does not
work
when I substitute the variable below, that's when I have problems. Any
ideas?

"Bob Phillips" wrote:

One more each time

"""" & FULLBBCODE & """"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Matt" wrote in message
...
I'm attempting to program a new function that includes other functions
provided by Bloomberg professional service. The end result needs to
look
like this:

BDP("AUD Curncy","LAST_PRICE")

The AUD Curncy is Bloomberg's security code, which I will be getting
from
two separate cells. I am able to put the two cells together as
follows:

BBCODE = AUD
BBKEY = Curncy
FULLBBCODE = BBCODE & BBKEY

My problem is that I need to get quotation marks around the FULLBBCODE
in
the VBA code. When I've tried """ & FULLBBCODE &""" it just returns
that
exact text, not what FULLBBCODE represents. Hope I've explained this
enough,
any help would be greatly appreciated.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Programming Function

Doesn't seem to work. I have figured out that I can put a cell reference in,
like B2 & " " & B3, where B2 = AUD and B3 = Curncy, and this works. However
I really didn't want to have to hardcode references in, I want the user to be
able to change where this data is contained in the future if possible.
Although for the sake of time I may just go that route. Any other ideas?

"Zone" wrote:

How about chr(34) & FULLBBCODE & chr(34)
Does that work?

"Matt" wrote in message
...
Tried it, didn't work the way I was hoping. It does return AUD Curncy in
a
cell, but I think I didn't provide enough information about the problem.
So
in my code, I want to execute the Bloomberg function which works fine if I
manually put in Function = [BDP("AUD Curncy","LAST_PRICE")] but does not
work
when I substitute the variable below, that's when I have problems. Any
ideas?

"Bob Phillips" wrote:

One more each time

"""" & FULLBBCODE & """"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Matt" wrote in message
...
I'm attempting to program a new function that includes other functions
provided by Bloomberg professional service. The end result needs to
look
like this:

BDP("AUD Curncy","LAST_PRICE")

The AUD Curncy is Bloomberg's security code, which I will be getting
from
two separate cells. I am able to put the two cells together as
follows:

BBCODE = AUD
BBKEY = Curncy
FULLBBCODE = BBCODE & BBKEY

My problem is that I need to get quotation marks around the FULLBBCODE
in
the VBA code. When I've tried """ & FULLBBCODE &""" it just returns
that
exact text, not what FULLBBCODE represents. Hope I've explained this
enough,
any help would be greatly appreciated.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 373
Default Programming Function

Matt, can you just post your entire routine? I think we're missing
something. James

"Matt McMaster" wrote in message
...
Doesn't seem to work. I have figured out that I can put a cell reference
in,
like B2 & " " & B3, where B2 = AUD and B3 = Curncy, and this works.
However
I really didn't want to have to hardcode references in, I want the user to
be
able to change where this data is contained in the future if possible.
Although for the sake of time I may just go that route. Any other ideas?

"Zone" wrote:

How about chr(34) & FULLBBCODE & chr(34)
Does that work?

"Matt" wrote in message
...
Tried it, didn't work the way I was hoping. It does return AUD Curncy
in
a
cell, but I think I didn't provide enough information about the
problem.
So
in my code, I want to execute the Bloomberg function which works fine
if I
manually put in Function = [BDP("AUD Curncy","LAST_PRICE")] but does
not
work
when I substitute the variable below, that's when I have problems. Any
ideas?

"Bob Phillips" wrote:

One more each time

"""" & FULLBBCODE & """"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Matt" wrote in message
...
I'm attempting to program a new function that includes other
functions
provided by Bloomberg professional service. The end result needs to
look
like this:

BDP("AUD Curncy","LAST_PRICE")

The AUD Curncy is Bloomberg's security code, which I will be getting
from
two separate cells. I am able to put the two cells together as
follows:

BBCODE = AUD
BBKEY = Curncy
FULLBBCODE = BBCODE & BBKEY

My problem is that I need to get quotation marks around the
FULLBBCODE
in
the VBA code. When I've tried """ & FULLBBCODE &""" it just returns
that
exact text, not what FULLBBCODE represents. Hope I've explained
this
enough,
any help would be greatly appreciated.








  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Programming Function

It might be a typo on your part, but let's go back to what you posted
originally...

BDP("AUD Curncy","LAST_PRICE")

BBCODE = AUD
BBKEY = Curncy
FULLBBCODE = BBCODE & BBKEY


FULLBBCODE, as constructed, will not have the blank space between BBCODE and
BBKEY. Try the assignment this way...

FULLBBCODE = BBCODE & " " & BBKEY

and see if that helps any. I'm thinking your code should look something like
this...

BBCODE = AUD
BBKEY = Curncy
FULLBBCODE = BBCODE & " " & BBKEY
<<Function = "BDP(""" & FULLBBCODE & """,""LAST_PRICE"")"

You used "Function" as a variable in your original posting... that is a
reserved keyword and cannot be the name of a variable.

Rick



"Matt McMaster" wrote in message
...
Doesn't seem to work. I have figured out that I can put a cell reference
in,
like B2 & " " & B3, where B2 = AUD and B3 = Curncy, and this works.
However
I really didn't want to have to hardcode references in, I want the user to
be
able to change where this data is contained in the future if possible.
Although for the sake of time I may just go that route. Any other ideas?

"Zone" wrote:

How about chr(34) & FULLBBCODE & chr(34)
Does that work?

"Matt" wrote in message
...
Tried it, didn't work the way I was hoping. It does return AUD Curncy
in
a
cell, but I think I didn't provide enough information about the
problem.
So
in my code, I want to execute the Bloomberg function which works fine
if I
manually put in Function = [BDP("AUD Curncy","LAST_PRICE")] but does
not
work
when I substitute the variable below, that's when I have problems. Any
ideas?

"Bob Phillips" wrote:

One more each time

"""" & FULLBBCODE & """"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Matt" wrote in message
...
I'm attempting to program a new function that includes other
functions
provided by Bloomberg professional service. The end result needs to
look
like this:

BDP("AUD Curncy","LAST_PRICE")

The AUD Curncy is Bloomberg's security code, which I will be getting
from
two separate cells. I am able to put the two cells together as
follows:

BBCODE = AUD
BBKEY = Curncy
FULLBBCODE = BBCODE & BBKEY

My problem is that I need to get quotation marks around the
FULLBBCODE
in
the VBA code. When I've tried """ & FULLBBCODE &""" it just returns
that
exact text, not what FULLBBCODE represents. Hope I've explained
this
enough,
any help would be greatly appreciated.







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
Programming or Function? jweasl Excel Discussion (Misc queries) 7 November 16th 06 04:32 AM
WORKSHEET FUNCTION or PROGRAMMING. rml Excel Worksheet Functions 8 November 11th 06 08:55 PM
Programming a Function in VB kdp Excel Discussion (Misc queries) 0 November 30th 05 09:10 PM
VBA programming-autofilter function ylchuah Excel Programming 1 July 19th 05 03:34 AM
Function tool or programming...Help please! Sukismomma Excel Programming 5 January 28th 05 12:05 PM


All times are GMT +1. The time now is 01:43 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"