Hi, i have a sheet where i have set the filter so i can filter out items
i have found a macro to select the first cell in column A
and a macro to select the last cell in column A
they might not be great but they seem to work fine
what im after is to somehow run the macro every time i change a filter option and get the value of last cell in column A - (take) the value of the first cell in column A and place that answer into E5
i have found a macro to select the first cell in column A
Code:
ActiveSheet.AutoFilter.Range.Offset(1).SpecialCells(xlCellTypeVisible).Cells(1, 1).Select
and a macro to select the last cell in column A
Code:
Range("A" & Rows.Count).End(xlUp).Select
they might not be great but they seem to work fine
what im after is to somehow run the macro every time i change a filter option and get the value of last cell in column A - (take) the value of the first cell in column A and place that answer into E5