I've got a document with a sheet, where the real used range is A1:BJ36360
, but a property UsedRange
returns a range with address A1:BJ72724
. A range A36361:BJ72724
is empty, there's no values, no formattings, and no formula is addressing any cell from it. I can do:
Range("A36361:BJ72724").Clear
Range("A36361:BJ72724").ClearFormat
Range("A36361:BJ72724").Clear<whatever the method with Clear at the beginning there is>
Range("A36361:BJ72724").Delete
But UsedRange
remains the same A1:BJ72724
. And if only I run:
Range("A36361:BJ72724").Delete Shift:=xlShiftUp
then UsedRange
returns the expected range A1:BJ36360
.
What could be the reason of this behaviour? How exactly UsedRange
is calculated?
p.s. Office 365, Excel version 16.0