PC Review


Reply
Thread Tools Rate Thread

Comment Box Placement

 
 
KC VBA Qns
Guest
Posts: n/a
 
      29th Oct 2010
Hihi,
I kinda pretty much researched historical posts on comment box. I am
trying to use VBA to reset the placement of the existing comment box
back to just next to the cell (from far away location), but I dont
seem to find any discussion on this.
Rgds,

 
Reply With Quote
 
 
 
 
KC VBA Qns
Guest
Posts: n/a
 
      29th Oct 2010
GOT IT.

base on: http://www.contextures.com/xlcomments03.html#Reset

Sub KC_Comment_Rebox()
For Each CELL In Selection
If Not CELL.Comment Is Nothing Then
CELL.Comment.Shape.Placement = xlMove
CELL.Comment.Shape.Top = _
CELL.Comment.Parent.Top - 7.5
CELL.Comment.Shape.Left = _
CELL.Comment.Parent.Offset(0, 1).Left + 11.25
CSH = CELL.Comment.Shape.Height
CSW = CELL.Comment.Shape.Width
If CSH < 55.5 * 0.9 Or CSH > 55.5 * 1.1 Or _
CSW < 96 * 0.9 Or CSW > 96 * 1.1 Then _
CELL.Comment.Shape.TextFrame.AutoSize = True
End If
Next CELL
End Sub
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comment Bubble placement Jimbo213 Microsoft Word Document Management 4 21st Aug 2009 09:32 AM
Edit Comment erases part of screen; comment uneditable Charles Blaquière Microsoft Excel Discussion 0 10th Sep 2008 08:31 PM
Mouse-over on comment highlights barely shows comment text GordonM Microsoft Word Document Management 0 9th Apr 2008 01:13 AM
a comment plugin & copy paste directly from excel to comment ? fr. =?Utf-8?B?UkZN?= Microsoft Excel Worksheet Functions 0 1st Dec 2004 11:29 PM
Comment Placement Annabelle Microsoft Excel Worksheet Functions 1 5th Dec 2003 08:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:36 PM.