M
Matt
I'm trying to write some VBA code that will add formulas to specific rows in
an excel spreadsheet. The formulas will be determined by a code in a
seperate column. For example, current location is a cell in column "H":
If the value in column "D" = 2 then
sum all conitiguos cells above (akin to clicking on the summation symbol)
and
copy the formula to the last column to the right that has values then
move down
one row and repeat.
If the value in column "D" = 4 then
subtract the value one row above from the value two rows above and
copy the
formula to the last column to the right that has values then move down
one
row and repeat
If the value in column "D" = 6 then
Go to Home
EndIf
EndIf
EndIf
Any suggestions...?
Thanks
an excel spreadsheet. The formulas will be determined by a code in a
seperate column. For example, current location is a cell in column "H":
If the value in column "D" = 2 then
sum all conitiguos cells above (akin to clicking on the summation symbol)
and
copy the formula to the last column to the right that has values then
move down
one row and repeat.
If the value in column "D" = 4 then
subtract the value one row above from the value two rows above and
copy the
formula to the last column to the right that has values then move down
one
row and repeat
If the value in column "D" = 6 then
Go to Home
EndIf
EndIf
EndIf
Any suggestions...?
Thanks