PC Review


Reply
Thread Tools Rate Thread

assign formula to a cell

 
 
=?Utf-8?B?QUxWRVNN?=
Guest
Posts: n/a
 
      27th Jun 2007
hi. i want to do this:
Worksheets("sheet1").Range("init").Offset(1, -1) = "=blp("SPX Index","last
price")"
but i cant because excel assumes the formula terminates on the second ",
therefore assuming the formula is =blp(

can you help me out?
 
Reply With Quote
 
 
 
 
Trevor Shuttleworth
Guest
Posts: n/a
 
      27th Jun 2007
Worksheets("sheet1").Range("init").Offset(1, -1) = "=blp(""SPX
Index"",""last price"")"

Regards

Trevor


"ALVESM" <(E-Mail Removed)> wrote in message
news5849C2C-CAF8-42B3-AF4C-(E-Mail Removed)...
> hi. i want to do this:
> Worksheets("sheet1").Range("init").Offset(1, -1) = "=blp("SPX Index","last
> price")"
> but i cant because excel assumes the formula terminates on the second ",
> therefore assuming the formula is =blp(
>
> can you help me out?



 
Reply With Quote
 
=?Utf-8?B?RlN0MQ==?=
Guest
Posts: n/a
 
      27th Jun 2007
hi.
not sure. =blp does not look like a standard excel function suggesting that
it might be a user defined function. post the UDF.

lunch.
Regards
FSt1

"ALVESM" wrote:

> hi. i want to do this:
> Worksheets("sheet1").Range("init").Offset(1, -1) = "=blp("SPX Index","last
> price")"
> but i cant because excel assumes the formula terminates on the second ",
> therefore assuming the formula is =blp(
>
> can you help me out?

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      27th Jun 2007
> .....Offset(1, -1) = "=blp("SPX Index","last > price")"

In a String constant (delineated by quote marks surrounding it), internal
quote marks must be doubled up. So, your code should look like this...

......Offset(1, -1) = "=blp(""SPX Index"",""last > price"")"

That is the rule for all String constants, not just for the way you used it
here.

Rick

 
Reply With Quote
 
=?Utf-8?B?QUxWRVNN?=
Guest
Posts: n/a
 
      27th Jun 2007
blp is a function that uses third party software via ddl links. the software
in question is bloomberg which is a market data feeder.

i think the previous post sorted it out.

cheers

"FSt1" wrote:

> hi.
> not sure. =blp does not look like a standard excel function suggesting that
> it might be a user defined function. post the UDF.
>
> lunch.
> Regards
> FSt1
>
> "ALVESM" wrote:
>
> > hi. i want to do this:
> > Worksheets("sheet1").Range("init").Offset(1, -1) = "=blp("SPX Index","last
> > price")"
> > but i cant because excel assumes the formula terminates on the second ",
> > therefore assuming the formula is =blp(
> >
> > can you help me out?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I assign a value to a cell without putting a formula in it WFariss Microsoft Excel Worksheet Functions 4 17th Feb 2010 01:10 PM
Can I assign a formula to track when another cell is changed? richnlori1965 Microsoft Excel Programming 3 25th Mar 2009 03:42 PM
Formula - assign a cell to show the next ash3154 Microsoft Excel Worksheet Functions 6 7th Feb 2009 10:08 AM
assign formula to another cell =?Utf-8?B?RGFubnljb2w=?= Microsoft Excel Worksheet Functions 3 12th May 2006 09:46 PM
Re: How to create a formula in VBA to assign to a cell Rusty Microsoft Excel Programming 0 19th Aug 2005 03:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.