+ -
当前位置:首页 → 问答吧 → 如何批量修改批注的显示位置

如何批量修改批注的显示位置

时间:2011-08-09

来源:互联网

通常插入批注后,当鼠标移到单元格上,批注就会在右边显示~~~
我现在想批注显示在屏幕的右上方怎么搞呢???最好就是可以批注修改的!

作者: fatdogdog   发布时间: 2011-08-09

ActiveCell.Comment.Visible = True
    ActiveCell.Comment.Shape.Select True
    Selection.ShapeRange.IncrementLeft -6#
    Selection.ShapeRange.IncrementTop -51.75
套上循环即可

作者: doitbest   发布时间: 2011-08-09

啊~~~因为刚刚学~~不太会搞~~我用DO WHILE写~~貌似没用~~~能帮我写完整么???

作者: fatdogdog   发布时间: 2011-08-10

Public Sub rt()
Dim x As Range
For Each x In ActiveSheet.Cells.SpecialCells(xlCellTypeComments)
    x.Comment.Visible = True
    x.Comment.Shape.Select True
    Selection.Left = x.Offset(-1, 1).Left
    Selection.ShapeRange.IncrementTop Rows(x.Row).RowHeight * -3
Next x
End Sub

作者: doitbest   发布时间: 2011-08-10

好像这样子搞了~~但批注不会自动隐藏出来~~ 郁闷死了~~

作者: fatdogdog   发布时间: 2011-08-10

Public Sub rt()
Dim x As Range
For Each x In ActiveSheet.Cells.SpecialCells(xlCellTypeComments)
    x.Comment.Visible = True
    x.Comment.Shape.Select True
    Selection.Left = x.Offset(-1, 1).Left
    Selection.ShapeRange.IncrementTop Rows(x.Row).RowHeight * -3
    x.Comment.Visible = False
Next x
End Sub

作者: doitbest   发布时间: 2011-08-10

好帖,学习了。

作者: opelwang   发布时间: 2011-08-10

相关阅读 更多