If you want to see the .UsedRange.Rows.Count method fail, try this:
1) Open a new empty sheet
2) Place a value in C5 only
3) Open the VBEditor
4) Open the Immediate window (Ctrl-G) and type in this line of code to get the window to show you the answer to your line of code:
Notice it gives back the answer 1 instead of 5? UsedRange.Rows.Count tells you how many rows are used, NOT what the last row used is. Any blank rows at the top of a sheet will completely destroys this method.
You could get all fancy and spot the first row used and do some math to make it work, but it's confusing to look at and more calcs than needed:
Bookmarks