Don\'t know what I\'m missing, but the examples I see posted do not appear to work.
I import data from a web query. I set the query to clear unused cells when it re
I've used Jeeped solution and worked for me when i add .Activate, so:
With Worksheets("Sheet1") Debug.Print .UsedRange.Address(0, 0) .UsedRange.Clear .UsedRange .Activate Debug.Print .UsedRange.Address(0, 0) End With
I'm using Excel2013