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
 

Some videos you may like

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

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.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,234
Messages
5,571,045
Members
412,359
Latest member
misstoffeepenny
Top