• Moving comments closer to parent cell

    Author
    Topic
    #473465

    I have a user who has Excel files that have worksheets that may contain hundreds of comments.each. The user has inherited most of these files and did not create the comments, so we’re both learning as we’re going along.

    The original problem was the usual “Cannot shift objects off the sheet…” message, so I used a macro to modify the properties of each comment. Problem solved.

    A second problem was that some of the comments had comment text boxes that were huge, mostly blank spaces. Here I used a macro to autosize each comment and then use an algorithm to resize the comment box if the width were greater than a certain amount. That did not fully resolve the problem but it did clean it up enough to satisfy us both.

    The final problem is placement. Most of the comments are near their parent cells, but some are many columns away. I am looking for any ideas on moving a comment closer to its parent cell if it is X amount of distance away, if in fact this can even be done.

    Thus it is that I turn to the experts.

    Thanks in advance.

    Viewing 0 reply threads
    Author
    Replies
    • #1257929

      You’d basically want to loop through the comments and check the difference between its Left and Top properties and those of its Parent cell.

    Viewing 0 reply threads
    Reply To: Moving comments closer to parent cell

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

    Your information: