View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jon Omar Jon Omar is offline
external usenet poster
 
Posts: 2
Default Clearing a merged cell

I'm writing a macro that needs to clear the contents of a merged cell.
I've given the cell (range) a name but when i try to execute the
statement;

Sheets("Sheetname").Range("Rangename").ClearConten ts

I get errormessage;

Cannot change a part of a merged cell.

I've tried naming the cell before and after merging with the same
restults. Help would be very much appreciated.

Jon Omar