PC Review


Reply
Thread Tools Rate Thread

[Automation] Why do my cells with formula appear as text?

 
 
=?Utf-8?B?U3R1YXJ0?=
Guest
Posts: n/a
 
      15th Nov 2007
We are currently automating Excel; creating a worksheet into which we are
pasting formula's. This generated sheet is opened by users (on a different
machine) which then causes the formula to be calculated.

This has been working fine up to now, until we changed the version of Excel
to 2002 (from 2000). All that happens now is that the formula appears as text
when the worksheet is opened.

Points to note:
1. The string holding the formula is added by the Cell.Formula property, e.g:
....
xlDataSheet.Cells(intRowNum, intCodeOfferCol).Formula = rsStocks!
txt_code_Offer
.....
2. The formula is "trimmed" so there are definitely no spurious characters.
3. If the Excel sheet is saved as a CSV file and opened it all works fine.
4. If the user presses <return> the formula is recalculated!

An example of one of the formulas is:
=BLP|M!'MSDLEAFE INDEX,<SEDOL>[PX_BID]'


 
Reply With Quote
 
 
 
 
Joe
Guest
Posts: n/a
 
      15th Nov 2007
On Nov 15, 1:04 pm, Stuart <Stu...@discussions.microsoft.com> wrote:
> We are currently automating Excel; creating a worksheet into which we are
> pasting formula's. This generated sheet is opened by users (on a different
> machine) which then causes the formula to be calculated.
>
> This has been working fine up to now, until we changed the version of Excel
> to 2002 (from 2000). All that happens now is that the formula appears as text
> when the worksheet is opened.
>
> Points to note:
> 1. The string holding the formula is added by the Cell.Formula property, e.g:
> ....
> xlDataSheet.Cells(intRowNum, intCodeOfferCol).Formula = rsStocks!
> txt_code_Offer
> .....
> 2. The formula is "trimmed" so there are definitely no spurious characters.
> 3. If the Excel sheet is saved as a CSV file and opened it all works fine.
> 4. If the user presses <return> the formula is recalculated!
>
> An example of one of the formulas is:
> =BLP|M!'MSDLEAFE INDEX,<SEDOL>[PX_BID]'


try this...

go to Tools -> Options..
in "View" tab, uncheck the box against "Formulas"

HTH
Joe
 
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
Distinguishing between Cells with Formula vs Cells with Text/Value bstobart Microsoft Excel Worksheet Functions 3 6th Oct 2008 06:45 PM
Formula Help: Add cells with certain text + cells that are blank =?Utf-8?B?Tmljb2xlIEwu?= Microsoft Excel Worksheet Functions 3 27th Feb 2007 06:59 AM
Formula to select cells based on text in other cells =?Utf-8?B?UGhyb250aXM=?= Microsoft Excel Discussion 4 25th Nov 2006 06:16 PM
Formula to add two cells when one or both cells are text aksaunders@affiniongroup.com Microsoft Excel Worksheet Functions 2 12th Apr 2006 04:19 PM
How do you change cells with formula's to the value or text? =?Utf-8?B?amFjcXVlcw==?= Microsoft Excel Misc 2 24th Oct 2003 09:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:47 PM.