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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

KentKHI

Active Member
Joined
Oct 1, 2004
Messages
492
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
 

bandit_1981

Board Regular
Joined
Aug 17, 2005
Messages
201
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,553
Messages
5,838,075
Members
430,527
Latest member
MyFace2

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
Top