Hi Guru
are there anyboyd know how to change the comment box position using VBA. Currently default comment box position is on the top right, is it changed to be under the cell or whatever?
Sorry - don't think it is doable via VBA.....can't see any positioning properties for comments
Rgds, Geoff [blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
Actually, comment is a shape. So, assuming that it is added to "D8", you can:
[tt]With Range("D8"
' read position of the cell
x = .Left
y = .Top
With .Comment.Shape
' move comment relative to the cell
.Left = x - 20
.Top = y + 50
End With
End With[/tt]
Rgds, Geoff [blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
Hi combo
I tried your code. The funny thing is the comment box still in the same position, only I right click mouse, try to edit comment box, I can see its position changed. because I changed around the x, y value. it looks like the comment box having some default position to hold it, I am not sure. can you tell me why?
Hi Cathy
It seems that comment has two positions. The first one is for editing and when the 'show comment' option is on - comment is always visible. Dragging the comment or using above code moves the it permanently (even if the comment box is invisible). The second position is where it popups while moving mouse over a cell. This seems to be fixed, related to the position of red dot comment indicator. As xlbo pointed, there is no positioning properties for this case.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.