Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm getting an error message in the workbook_sheetchange event when I execute
the first copy command below after Deleting the contents of a merged range. When Updating the contents of the same cell this command works. The MergeArea seems to be undefined. I thought the MergeArea had to be defined if MergeCells=true. What am I missing? If Target.MergeCells Then Target.MergeArea.Copy Destination:=CopySheetWorksheet.Range(CopySheetWor ksheet.Cells(Target.MergeArea.Row, Target.MergeArea.Column), CopySheetWorksheet.Cells(Target.MergeArea.Row + Target.MergeArea.Rows.count, Target.MergeArea.Column + Target.MergeArea.Columns.count)) Else Target.Copy Destination:=CopySheetWorksheet.Range(CopySheetWor ksheet.Cells(Target.Row, Target.Column), CopySheetWorksheet.Cells(Target.Row + Target.Rows.count, Target.Column + Target.Columns.count)) End If |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA Functions Undefined | Excel Worksheet Functions | |||
determine if sheet contains mergearea(s) | Excel Programming | |||
Undefined function | Excel Programming | |||
Undefined function | Excel Programming |