• Moving Comments (2000)

    Author
    Topic
    #423667

    I inherited a spreadsheet with dozens of comments that have been dragged far from the cell they refer to, is it possible to write a macro that will restore them all to their default position adjacent to their cell?

    Viewing 0 reply threads
    Author
    Replies
    • #970502

      The following is a reasonable approximation:

      Sub ResetComments()
      Dim cmt As Comment
      For Each cmt In ActiveSheet.Comments
      cmt.Shape.Top = cmt.Parent.Top – 8
      cmt.Shape.Left = cmt.Parent.Left + cmt.Parent.Width + 11
      Next cmt
      End Sub

    Viewing 0 reply threads
    Reply To: Moving Comments (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: