LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Formula assignment problem

Hello !

I'm generating a spreadsheet from Access. (all in 2002)

At one point, I have the following formula to put into a cell :

xlSheet.Range(...).FormulaR1C1 = _

"IF(ISBLANK(RC[-1]),"""",IF(LEFT(RC[-1],1)=""N"",""Fail"",""Passed""))"

If I do the assignment directly in code as above, it works well. But
if I use instead :

xlSheet.Range(...).FormulaR1C1 = strFormula

where strFormula contains exactly the same formula (except for the
leading and trailing quotes), it fails with an error 1004

Any idea ?

Thanks in advance.


 
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
Need Formula to "Adjust" to New Column Assignment bethe Excel Worksheet Functions 3 January 21st 10 11:13 PM
Dynamic Assignment of a Cell Address In Formula tb Excel Worksheet Functions 9 December 14th 07 06:52 AM
assignment problem L. Chung Excel Worksheet Functions 1 April 17th 05 06:06 AM
Assignment problem [email protected] Excel Programming 4 October 10th 04 07:17 PM


All times are GMT +1. The time now is 11:49 AM.

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"