Using Excel 2000, my procedure adds a comment to various cells based on their content. When visible, the cells default to a position just above and to the right (of course), which, for my worksheet, is off the screen. I want them to show up to the left of the cell when the mouse is positioned over the cell with the comment. Attempts at moving them with VBA do nothing.
I'm having success with
but when I try to use
or
in that same loop neither has any effect, and I don't get an error.
I also get no results and no error from
Any clue as to why nothing's happening (or why it's not happening)?
I'm having success with
Code:
For Each comment_shape In ActiveSheet.Comments
comment_shape.Shape.AutoShapeType = msoShapeRoundedRectangle
comment_shape.Shape.TextFrame.AutoSize = True
Next comment_shape
but when I try to use
Code:
comment_shape.Shape.IncrementLeft (-300)
Code:
comment_shape.Flip msoFlipHorizontal
I also get no results and no error from
Code:
comment_shape.Fill.ForeColor.RGB = RGB(128, 0, 0)
comment_shape.Fill.BackColor.RGB = RGB(170, 170, 170)
comment_shape.Fill.TwoColorGradient msoGradientHorizontal, 1
Any clue as to why nothing's happening (or why it's not happening)?