![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Houston, TX
Posts: 303
|
I can select the merged cell, right click and ClearContents with no problem. But VB aborts with message "Cannot change part of a merged cell". Ideas on how to get around this?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Boston, MA
Posts: 105
|
It's not a great way of doing things, but if you first "Select" the merged cell, then do clearcontents, it should work.
For example, if the merged cells are A1:A5: Range("A1").Select Selection.ClearContents |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|