I have a code for adding group of rows from another Worksheet. The number of rows is always different. Under that group I will add some more.
When I run the code I get something like this. When I run the code the active.cell is always the one where I want to add the sum formula.
The number of rows in the middle are always different. The number of them is set with a variable "Dim nbr As Long".
Somehow (with an offset?) I want to add a sum formula in the active cell. In that case the sum formula should sum the range P2:P7.
I would be very grateful for some help
When I run the code I get something like this. When I run the code the active.cell is always the one where I want to add the sum formula.
The number of rows in the middle are always different. The number of them is set with a variable "Dim nbr As Long".
Somehow (with an offset?) I want to add a sum formula in the active cell. In that case the sum formula should sum the range P2:P7.
I would be very grateful for some help