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: 26
Default Enter formula in cell

I know this is simple but I am not sure of the syntax to do this, here is what I hav

LastActiveRowForNames = Cells(Rows.Count, "B").End(xlUp).Ro
Range("G" & LastActiveRowForNames + 1).Selec
ActiveCell.FormulaR1C1 = "=SUM(R[-LastActiveRowForNames]C:R[-1]C)" <---problem her

In this I a basically putting a sum at the bottom row of column "G" to sum it. I won't know what the bottom row is so I have it set as "LastActiveRowForNames" then I add one to it to make the active cell the one at the bottom of column G. Then I want to sum it but it doesn't like what I have. I know the idea is right, I think I am just wrong on syntax.

Any help would be greatly appreciated, I know its simple, I just don't know the answe

Jim
 
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
How to enter a formula in a cell? novastar Excel Worksheet Functions 2 September 1st 09 09:25 PM
Enter text and formula in a cell Carter68 Excel Worksheet Functions 7 January 27th 09 03:41 PM
Cannot enter formula in a cell after removing a circular formula Big Corona Excel Worksheet Functions 0 April 5th 05 06:07 PM
Can you enter a formula in a cell to run a macro? Nevaeh Excel Worksheet Functions 2 February 14th 05 11:51 PM
Enter Formula in a cell with VBA Bruce Roberson Excel Programming 2 July 31st 03 08:54 PM


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

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"