#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Formula ?

Hi
I tried to put a formula (vb+vba) and could not do it.

Code:
S="=IF(ISBLANK($C1),,$C1-$D1)"
xlsRange.FormulaR1C1 = S

When I opened the file, the formula was:
=IF(ISBLANK($K:$K),,'D11'-$K:$K)

What is wrong?

Thank you.
Joe


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Formula ?


xlsRange.Formula = S


--
HTH

Bob Phillips

"Joe" wrote in message
...
Hi
I tried to put a formula (vb+vba) and could not do it.

Code:
S="=IF(ISBLANK($C1),,$C1-$D1)"
xlsRange.FormulaR1C1 = S

When I opened the file, the formula was:
=IF(ISBLANK($K:$K),,'D11'-$K:$K)

What is wrong?

Thank you.
Joe




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
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


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