Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 440
Default reposition comments

Hi,
How can I use VBA to show comments above the cell they are attached to
rather than to the right? I have found that as the user moves accross the
spreadsheet, the comments in the right most columns disappear off the screen
until the user scrolls accross. More than a bit annoying!
Thanks,
--
Traa Dy Liooar

Jock
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default reposition comments

Jock,

All the methods for positioning comments are here and FWIW I think
positioning them centre-screen is excellent and overcomes the problem you
describe.

http://www.contextures.com/xlcomments03.html#Right

Mike

"Jock" wrote:

Hi,
How can I use VBA to show comments above the cell they are attached to
rather than to the right? I have found that as the user moves accross the
spreadsheet, the comments in the right most columns disappear off the screen
until the user scrolls accross. More than a bit annoying!
Thanks,
--
Traa Dy Liooar

Jock

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 440
Default reposition comments

Thanks Mike - I found an option which works well.
--
Traa Dy Liooar

Jock


"Mike H" wrote:

Jock,

All the methods for positioning comments are here and FWIW I think
positioning them centre-screen is excellent and overcomes the problem you
describe.

http://www.contextures.com/xlcomments03.html#Right

Mike

"Jock" wrote:

Hi,
How can I use VBA to show comments above the cell they are attached to
rather than to the right? I have found that as the user moves accross the
spreadsheet, the comments in the right most columns disappear off the screen
until the user scrolls accross. More than a bit annoying!
Thanks,
--
Traa Dy Liooar

Jock

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default reposition comments

Option Explicit
Sub AddComment()
AddCommentToCell Range("C12"), "Hello World - Left", True
AddCommentToCell Range("C13"), "Hello World - Right"
End Sub
Sub AddCommentToCell(target As Range, text As String, Optional bLEFT As
Boolean)
Dim cm As comment
Set cm = target.AddComment
With cm
.text text:=text
With .Shape
If bLEFT Then
.Left = target.Left - Range("C12").Width
End If
.Width = target.Width
End With
.Visible = True
End With
End Sub

"Jock" wrote:

Hi,
How can I use VBA to show comments above the cell they are attached to
rather than to the right? I have found that as the user moves accross the
spreadsheet, the comments in the right most columns disappear off the screen
until the user scrolls accross. More than a bit annoying!
Thanks,
--
Traa Dy Liooar

Jock

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
Reposition Chart Macro Graham Excel Programming 6 August 4th 09 12:24 PM
reposition combo box ** Atishoo Excel Programming 3 May 14th 08 04:59 PM
reposition user form Chad New Users to Excel 0 April 29th 08 09:49 PM
reposition windows amsterdam-quick Excel Discussion (Misc queries) 2 January 25th 08 08:42 PM
Precisely reposition a graphic quartz Excel Programming 1 July 27th 04 01:43 AM


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

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

About Us

"It's about Microsoft Excel"