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

I have the following statement:

ActiveCell.FormulaR1C1 = "=SUM(R[-4]C:R[-1]C)"

I would like to replace the -4 with a count variable that I created:

ActiveCell.FormulaR1C1 = "=SUM(R[-Count]C:R[-1]C)"

This is not working. The idea is that I want to sum Count number of cells
above my active cell.

Help please?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Dynamic FormulaR1C1 value

ActiveCell.FormulaR1C1 = "=SUM(R[-" & Count & "]C:R[-1]C)"

Tim

"Nuraq" wrote in message
...
I have the following statement:

ActiveCell.FormulaR1C1 = "=SUM(R[-4]C:R[-1]C)"

I would like to replace the -4 with a count variable that I created:

ActiveCell.FormulaR1C1 = "=SUM(R[-Count]C:R[-1]C)"

This is not working. The idea is that I want to sum Count number of
cells above my active cell.

Help please?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Dynamic FormulaR1C1 value

ActiveCell.FormulaR1C1 = "=SUM(R[-" & _
Count & "]C:R[-1]C)"

--
Regards,
Tom Ogilvy



"Nuraq" wrote in message
...
I have the following statement:

ActiveCell.FormulaR1C1 = "=SUM(R[-4]C:R[-1]C)"

I would like to replace the -4 with a count variable that I created:

ActiveCell.FormulaR1C1 = "=SUM(R[-Count]C:R[-1]C)"

This is not working. The idea is that I want to sum Count number of cells
above my active cell.

Help please?




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
Formular1c1 Steph[_3_] Excel Programming 2 June 30th 05 09:12 PM
FormulaR1C1 Aksel Børve Excel Programming 2 February 28th 05 09:52 PM
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


All times are GMT +1. The time now is 12:29 AM.

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"