Range.ResetContents

Colin Legg

MrExcel MVP
Joined
Feb 28, 2008
Messages
3,507
Office Version
  1. 365
Platform
  1. Windows
This one is more of a curiosity than anything else. I was exploring the Excel object model in the VBA IDE and I noticed that there's a Range.ResetContents() method. It's a hidden member so you have to right click > show hidden members in the object browser to see it. I don't remember seeing it before and I can't find any online documentation about it. Does anyone know exactly what it does and whether it's new or old? I'm wondering if it might have some edge case uses.

range.resetcontents.png
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
My version is MSO 365 and I don't have it. Then again, I don't allow updates so I'm probably behind. By chance do you have any add-ins installed? It might belong to an add-in. This is as close as I came in a search, but it's not exactly the same
 
Upvote 0
I see it with my version although I also had to toggle the Group Members option to get it to show.
I also note that it is greyed out on my version.
I have no idea about it and also can't see any documentation

Version
Microsoft® Excel® for Microsoft 365 MSO (Version 2407 Build 16.0.17830.20016) 64-bit

1722018795262.png
 
Upvote 0
Okay, thanks both - sounds like it's been added fairly recently then.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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