Reset Excel Usedrange not working

AbdulkareemAlhassni

New Member
Joined
Nov 16, 2018
Messages
41
Hey guys,

i have been trying to reset my excel range after using clear content but everytime i use it the range stays the same.

anyone have an idea how to force the range to get back to "Used range" after " clearing Content "

i have used CTRL + END, yet all cells are blank and nothing inbetween the start and the end, am sure of it.

currently am using the below code

Code:
Activesheet.usedrange

and it doesnt seem to work

anyone have an idea ?
 
I've never used .SpecialCells(xlCellTypeLastCell) as, early on in my quest to learn VBA for Excel, I read several reports that it is not reliable. I'm disappointed now to learn that UsedRange may not be entirely reliable either. I use it quite often to respond to posts that provide too little information on layout. :mad:

So, i should use .clear for all the blank rows to get my last data point updated when pressing CTRL+END

correct ?
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Best bet is to try it & see what happens.
 
Upvote 0

Forum statistics

Threads
1,224,786
Messages
6,180,948
Members
453,007
Latest member
anaysha1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top