+ Reply to Thread
Results 1 to 3 of 3

comment box keeps getting resized

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    comment box keeps getting resized

    hi,

    i have a worksheet with several comments
    ive set it to "show comments"
    my problem is everytime i open the file almost all the comments
    keeps getting resized where i cant read the comments anymore
    id have to resize each comment again just to read the info
    even after saving then opening the file again it still gets resized

    do you have any idea how to prevent this?

  2. #2
    Registered User
    Join Date
    06-16-2017
    Location
    bangalore
    MS-Off Ver
    2013
    Posts
    2

    Re: comment box keeps getting resized

    1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.

    2. Click Insert > Module, and paste the following macro in the Module window.

    VBA code: Auto-size comment boxes in a worksheet

    Sub FitComments()
    Dim xComment As Comment
    For Each xComment In Application.ActiveSheet.Comments
    xComment.Shape.TextFrame.AutoSize = True
    Next
    End Sub

    3. Then press F5 key to run this code, and all of the comment boxes in the active worksheet have been resized to fit their contents .

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    Re: comment box keeps getting resized

    hi,

    seemed to have retained the comment box sizes after running the code

    thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Header Picture Getting Resized?
    By ptmuldoon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2016, 11:24 AM
  2. Disable Delete Comment, Edit Comment, Show/Hide Comment
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2013, 06:12 AM
  3. Pictures are resized when pasting
    By thewhistler in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 03-12-2013, 08:16 AM
  4. [SOLVED] flag if UserForm is resized
    By halimnurikhwan@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2006, 08:20 AM
  5. [SOLVED] How to protect cells from getting deleted or resized?
    By nilangini in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2006, 04:50 PM
  6. Convert Range To JPG (Resized)
    By WayneK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2005, 05:19 PM
  7. [SOLVED] Protect Objects so they cannot be resized
    By Carolyn A in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-04-2005, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1