LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default VBA Formula with variable s/b simple

Thanks Jim - It worked PERFECT
I new I was close!


"Jim Thomlinson" wrote:

Range("C" & LASTROW).formula = "=SUM(C1:C" & lastrow - 1 & ")"

--
HTH...

Jim Thomlinson


"Bricktop" wrote:

I am trying to sum a column in Excel in my macro. This is what I have so far

Range("C" & LASTROW).formula = "=SUM(Range("C1:C" & lastrow - 1"))"

I've tried several scenerios and just can't figure it out
Any help would be greatly appreciated.



 
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 set up a simple variable in Excel, but cell location independent Alberta K. New Users to Excel 3 December 19th 07 03:55 PM
how to set up a simple variable in Excel, but cell location independent Alberta K. Excel Worksheet Functions 3 December 19th 07 03:55 PM
variable cell referencing for simple data points pno1 Excel Programming 4 May 19th 05 03:54 PM
Simple Variable Question Michael Kintner Excel Programming 1 November 24th 03 06:06 PM
Simple problem refering to variable in For ... Next loop ... Chris Excel Programming 1 July 15th 03 01:00 AM


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