Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You already have good answers from Dave & Norman, so just this-
I have merged cells A1..C1 and named it rngTest. I expect you only named A1. Had you named A1:C1 your code would work without modification. If the cells are already merged you'd need to enter the address fully in the RefersTo box in the names dialog Ctrl-F3. Regards, Peter T - "ArthurJ" wrote in message ... I have merged cells A1..C1 and named it rngTest. I enter data into rngTest. Range("rngTest").ClearContents 'Generates Error 1004 Cannot change part of a merged cell. Range("rngTest").Select 'or Activate Selection.ClearContents 'Runs successfully. This sure seems bizarre. Does your machine perform like mine? Any suggested workarounds? I would prefer NOT to select these cells programmatically. Art |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy paste non merged to merged cells | Excel Worksheet Functions | |||
How can I sort an Excel Doc containing merged & non-merged cells? | 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 | |||
Sorting merged cellsHow do I sort merged cells not identically siz | Excel Worksheet Functions |