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

I have a need to place different formulas in different cells. I have an
integer C and string Col. C=50 Col=4.

I need a formula like this:
Range("K" & C + 3).Select
ActiveCell.FormulaR1C1 = "=R[1-C]C[-10+Col]-5"

I cannot get the correct syntax for using the variable in the R[] section.
On the worksheet, this formuls should read =E4-5.

Can someone help me with the syntax?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default FormulaR1C1 syntax

Hi
try:
ActiveCell.FormulaR1C1 = "=R[" & 1-C & "]C[" & -10+Col" & ]-5"

--
Regards
Frank Kabel
Frankfurt, Germany
"JCanyoneer" schrieb im Newsbeitrag
...
I have a need to place different formulas in different cells. I have an
integer C and string Col. C=50 Col=4.

I need a formula like this:
Range("K" & C + 3).Select
ActiveCell.FormulaR1C1 = "=R[1-C]C[-10+Col]-5"

I cannot get the correct syntax for using the variable in the R[] section.
On the worksheet, this formuls should read =E4-5.

Can someone help me with the syntax?



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
activecell.formular1c1 monika Excel Programming 0 April 29th 04 10:13 AM
FormulaR1C1 D.S.[_3_] Excel Programming 2 January 2nd 04 12:03 AM
FormulaR1C1 D.S.[_3_] Excel Programming 0 January 1st 04 09:12 PM
FormulaR1C1 aapp81[_22_] Excel Programming 3 December 3rd 03 10:47 PM
ActiveCell.FormulaR1C1 Leif Rasmussen Excel Programming 1 October 16th 03 09:46 AM


All times are GMT +1. The time now is 08:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"