Having a moving Total
To find the first empty row here is some easy code
Dim rngLastRow As Range
Set rngLastRow = Sheet1.Range("A65535").End(xlUp).Offset(1, 0)
rngLastRow.Select 'This line is optional and assumes you want to select the
row
I assume you can take it from here...
HTH
"Keith" wrote:
I have a worksheet that is linked to a query. When the query updates
the number of rows can either increase or decrease. At the bottom of
the last two columns I want a total for each column.
How can I make the totals move up and down the sheet so they are always
directly below the last row?
|