Clear a Named merged cell?

bandit_1981

Board Regular
Joined
Aug 17, 2005
Messages
201
I have a notes section on my sheet and when ever a user selects that they want to to do anyoher cleint it whipes it clear for them. I just loop through my names and clear them out since all the cells that matter are named. This works just fine but it doesnt clear out the Merged named cells.

IE
Code:
Range(rng.Name).ClearContents

I tried = "" etc but none of these methods whipe out the merged cells.

Thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hey bandit

I get around this by setting up my merged cells in a different way.

Rather than merge, I would name the first cell in the group that you would like to merge, put your value in that cell, select the range you would like to merge, choosing the named cell first, and format the cell to "center across selection" over the range which you would like to merge.

I can explain again if needed, I am known to be confusing
 
Upvote 0
Yeah that works but it doesnt have the nice clean look to it. Becuase the way my sheet is layed out it covers 3 rows of cells of different sizes. It does do what is suppose to though. Maybe i will try to make it look alittle better on my sheet.
 
Upvote 0

Forum statistics

Threads
1,224,271
Messages
6,177,611
Members
452,785
Latest member
3110vba

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