+ Reply to Thread
Results 1 to 2 of 2

Resize the comment window

  1. #1
    Registered User
    Join Date
    07-13-2005
    Posts
    89

    Resize the comment window

    Hi everyone and thanks in advance for the help.

    I'm trying to macro comments on the cell. However I need to make the comment box bigger. Here's my code:

    Range("G6").AddComment
    Range("G6").Comment.Visible = False
    Range("G6").Comment.Text Text:="Name:" & Chr(10) & "qqqq" & Chr(10) & ""
    Selection.ShapeRange.ScaleHeight 3.28 ', msoFalse, msoScaleFromTopLeft
    Range("G6").Select

    I keep getting an error in the "selection.shaperange..." line. Help anyone?

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Give a try to following

    Selection.Comment.Shape.TextFrame.AutoSize = True

    HTH
    Carim

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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