Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Clearing a merged cell
I like Bob's method better, but this works, too:
Worksheets("Sheetname").Range("Rangename").Value = "" Jon Omar wrote: 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 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Clearing a cell based on the value of another cell (INDIRECT data) without macros | About this forum | |||
Clearing cells without clearing formulas | Excel Discussion (Misc queries) | |||
Autofit Merged cell Code is changing the format of my merged cells | Excel Discussion (Misc queries) | |||
how do i link merged cells to a merged cell in another worksheet. | Excel Worksheet Functions | |||
Clearing the Contents of Merged Cells | New Users to Excel |