Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Mudraker,
Thanks, FYI, this part of the code Cells(r, "c").FormulaR1C1 = "=sum(c1:c" & r - 1 & ")" didn't work property but I figured out and fixed it. Here's what I came with and works fine: Cells(r, "c").Value = "=sum(c1:c" & r - 1 & ")" Thanks for your great help and also all of the rest of you who provided me with options. Juan -----Original Message----- Sub ss() Dim r As Long r = Cells.Find(what:="*", SearchOrder:=xlByRows, _ SearchDirection:=xlPrevious).Row + 1 ' format range as required 'Range("a" & r & ":o" & r).Select 'Selection.Font.Bold = True Range("a" & r & ":o" & r).Font.Bold = True Cells(r, "a").Value = "Total" Cells(r, "c").FormulaR1C1 = "=sum(c1:c" & r - 1 & ")" End Sub --- Message posted from http://www.ExcelForum.com/ . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
why a reference to an empty cell is not considered empty | Excel Discussion (Misc queries) | |||
in excel..:can't empty clip are" but already empty | Excel Discussion (Misc queries) | |||
Excel - Autom. Filter "Empty / Non Empty cells" should come first | Excel Discussion (Misc queries) | |||
How can I convert empty strings to empty cells? | Excel Discussion (Misc queries) | |||
Can blank cells created using empty Double-Quotes not be empty?? | Excel Programming |