XL2000: Error Message Appears When You Run a Macro to Modify Cell Comments (211885)
The information in this article applies to:
This article was previously published under Q211885 SYMPTOMS
When you run a Visual Basic for Applications macro that modifies cell
comments on a worksheet, the following error message may appear:
Run-time error '438':
Object doesn't support this property or method
CAUSE
You may see this behavior if you record a macro that moves or resizes the
cell comment. The Macro Recorder does not properly record the selection of the
comment, so the macro cannot modify the size or position of
the comment on the worksheet.
WORKAROUND
To avoid this problem, add the following two lines of macro code before the
line that reads "Selection.RangeShape..." (without quotation marks) in the
recorded macro:
Range(<cell reference>).Comment.Visible = True
Range(<cell reference>).Comment.Shape.Select True
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 9/27/2003 |
---|
Keywords: | kbbug kbcode kberrmsg kbpending kbProgramming KB211885 |
---|
|