Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Position of Comment


The default appears to be to the right of the little red triangle.

Is it possible to have it appear to the left of that, to avoid
horizontal scrolling to read it ?

Thanks - Kirk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Position of Comment

AFAIK there is no way to change the "hover" position of a comment. However,
in a selection event, could move a comment to left of the cell if it would
otherwise appear off the right edge, but would need to select the cell to
trigger it. Eg, try this in the ThisWorkbook module (to cater for all sheets
in the wb)

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Range)
Dim rt As Single
Dim cmt As Comment

Application.DisplayCommentIndicator _
= xlCommentIndicatorOnly

On Error Resume Next
Set cmt = Target(1).Comment

On Error GoTo errExit
If Not cmt Is Nothing Then
With ActiveWindow.VisibleRange
rt = .Cells(1, 1).Left + .Width
End With

If cmt.Shape.Width + 10 + Target.Offset(, 2).Left rt Then
cmt.Shape.Left = Target.Left - cmt.Shape.Width - 5
cmt.Visible = True
End If
End If

errExit:
End Sub

Regards,
Peter T

"kirkm" wrote in message
...

The default appears to be to the right of the little red triangle.

Is it possible to have it appear to the left of that, to avoid
horizontal scrolling to read it ?

Thanks - Kirk



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Position of Comment

On Sun, 8 Jun 2008 12:46:03 +0100, "Peter T" <peter_t@discussions
wrote:

AFAIK there is no way to change the "hover" position of a comment. However,
in a selection event, could move a comment to left of the cell if it would
otherwise appear off the right edge, but would need to select the cell to
trigger it. Eg, try this in the ThisWorkbook module (to cater for all sheets
in the wb)


That's *very* nice Peter, many thanks.

You hover over the comment - see it's off screen, click the cell and
bingo !

Brilliant !

Cheers - Kirk
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Position of Comment

You explained the workaround much better than I did :-)

Regards,
Peter T

"kirkm" wrote in message
On Sun, 8 Jun 2008 12:46:03 +0100, "Peter T" wrote:

AFAIK there is no way to change the "hover" position of a comment.

However,
in a selection event, could move a comment to left of the cell if it

would
otherwise appear off the right edge, but would need to select the cell to
trigger it. Eg, try this in the ThisWorkbook module (to cater for all

sheets
in the wb)


That's *very* nice Peter, many thanks.

You hover over the comment - see it's off screen, click the cell and
bingo !

Brilliant !

Cheers - Kirk



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fix size and position of comment viettuyen Excel Discussion (Misc queries) 1 April 29th 09 12:41 PM
Custom Comment Position John3005 Excel Discussion (Misc queries) 3 January 26th 08 01:49 PM
Comment position after filter cassie Excel Discussion (Misc queries) 2 June 28th 05 12:04 AM
How to change the position of a comment box Frederic Excel Discussion (Misc queries) 2 May 26th 05 04:44 AM
Comment position..?? RJH Excel Discussion (Misc queries) 1 December 29th 04 04:00 PM


All times are GMT +1. The time now is 06:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"