LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 166
Default Positioning a Comment


Could someone help here please, I'm trying to position
a Comment beside a Form. Using this... which almost
works. r is the Col and row where the comment is.

--
Sub Showc(ByVal r)
Dim rng As Range
Dim cTop
Set rng = ActiveWindow.VisibleRange
cTop = rng.Top + rng.Height / 2
With Worksheets("Sheet1").Range(r)
If Not .Comment Is Nothing Then
With .Comment
With .Shape
.Top = cTop - 215
.Left = Range("M11").Left + 47
End With
.Visible = True
End With
End If
End With
Set rng = Nothing
End Sub
--

The problem is the left position. For some reason it varies.
I haven'e been able to workout a relationship between the
right hand side of the Form - yet, or see if using that is better

..Left in the above is 700 odd; MyForm Left + width is 300ish.

Thanks - Kirk


 
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
Positioning a comment Oldjay Excel Programming 1 November 26th 07 07:54 PM
Comment Box Positioning Q Sean Excel Worksheet Functions 1 March 17th 07 05:03 PM
comment positioning Rodney63 Excel Programming 2 September 20th 06 08:25 AM
What is the deal with Comment Object Positioning? Mark Excel Discussion (Misc queries) 3 June 9th 05 11:05 PM
positioning a comment Sheldon Excel Programming 0 September 30th 04 04:43 PM


All times are GMT +1. The time now is 10:58 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"