Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am stuck with VBA syntax.
A1 has value of 123 A2 is blank A3 also has value of 123 In A4 need a SUM range of A3 only If A1:A3 all have values then need SUM range of A1:A3 This is what I have now but does not do the variable trick. Set rng3 = Range(ActiveCell.Offset(-1, 0), _ ActiveCell.Offset(-1,0).End(xlUp)) ActiveCell.Formula = "=Sum(" & rng3.Address & ")" Gord |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Range to VLOOKUP as a Variable (range in another file) | Excel Programming | |||
select range and put range address in variable | Excel Programming | |||
Macro to copy a specified range to a variable range | Excel Programming | |||
setting a range variable equal to the value of a string variable | Excel Programming | |||
Problem trying to us a range variable as an array variable | Excel Programming |