+ Reply to Thread
Results 1 to 4 of 4

Comment Box Positioning

  1. #1
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    369

    Comment Box Positioning

    Hi all,

    I have the following code that positions my comment box when the cell containing the comment is clicked. the vba positions it to the left of the cell, but it positions it relative to the cell and not relative to the sheet, how can i modify it as sometime if the cell is near the top of the sheet, i lose some of the comment under the ribbon and vice versa if it is near the bottom.

    PHP Code: 
     Dim cmt As Comment

    For Each cmt In ActiveSheet.Comments
       cmt
    .Shape.Top cmt.Parent.Top 50
       cmt
    .Shape.Left _
          cmt
    .Parent.Offset(01).Left 600
    Next 

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Comment Box Positioning

    Maybe something like:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    369

    Re: Comment Box Positioning

    My error handler popped up using that code.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Comment Box Positioning

    Sorry, I forgot to set the WF

    Please Login or Register  to view this content.

+ 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. Check if cell in range is empty, if it is delete comment else format comment to
    By banaanas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2015, 01:15 AM
  2. Copy contents of multiple comment boxes and paste in a single comment box
    By xxJaRxx in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-14-2014, 12:39 PM
  3. 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
  4. Positioning a comment help?
    By CFerry_11 in forum Excel General
    Replies: 2
    Last Post: 10-30-2011, 06:54 PM
  5. Cell Comment Positioning
    By stephens in forum Excel General
    Replies: 2
    Last Post: 01-20-2010, 12:19 PM
  6. Replies: 5
    Last Post: 11-16-2005, 02:30 AM
  7. [SOLVED] What is the deal with Comment Object Positioning?
    By Mark in forum Excel General
    Replies: 3
    Last Post: 06-09-2005, 07:05 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