Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I haven't tried this before now and i am having a little trouble.
This is what i have: Worksheets("Sheet2").Range("C1").Value = "=SUM(C2:C5000)" And it works ok, But i wont always know the range. I need something like: Worksheets("Sheet2").Range("C1").Value = "=SUM(C2:C" & LastRow)" But i tried that and the function didnt recognize my variable. Any help would be great. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Programmatically add a Formula in a worksheet? | Excel Worksheet Functions | |||
Programmatically selecting first worksheet | Excel Programming | |||
Programmatically selecting first worksheet | Excel Programming | |||
How to add an image to a worksheet programmatically | Excel Discussion (Misc queries) | |||
Programmatically Add Worksheet Event | Excel Programming |