I am trying to have this piece of code clear the contents of a certain range, before I bring new data. This range has a header right in the above row, which is getting cleared as well, although the range doesn't include it.
I've tried specifying the range and having other cells selected before running it, but the header gets cleared anyway.
With MyResults
LastRowResults = Range("A16:K" & Rows.Count).End(xlUp).Row
.Range("A$16:$K$" & LastRowResults).Select
Selection.SpecialCells(xlCellTypeConstants, 23).Select
Selection.ClearContents
It's clearing row 15 and even the content of cell A9, some of the times I run it.
The goal is to have this range cleared, keeping formulas in some columns intact, so that filtered data down the road can be brought in, making up the report required.