Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2006

Tip: Looking for answers? Try searching our database.

Changing cell comment default

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Beemer - 05 Oct 2006 07:19 GMT
Is there a way to make the default for a cell comment property to "move but
don't size with cells"?  At present I have to go to properties every time I
add a comment.

Beemer
Dave Peterson - 05 Oct 2006 13:54 GMT
I don't know a way of changing that default.

Maybe you could just copy and existing comment and edit|paste special|comments.

Or maybe you could use a macro to add the comment:

Option Explicit
Sub testme()
   With ActiveCell
       If .Comment Is Nothing Then
           'do nothing
       Else
           .ClearComments
       End If
       
       .AddComment Text:=Application.UserName & ":" & vbLf
       
       .Comment.Shape.Placement = xlMoveAndSize
   End With
   SendKeys "%ie~"

End Sub

Or don't worry about that setting when you're adding the comments--just come
back and toggle that setting for all the comments:

Option Explicit
Sub testme2()
   Dim cmt As Comment
   For Each cmt In ActiveSheet.Comments
       cmt.Shape.Placement = xlMoveAndSize
   Next cmt
End Sub

But those comments still seem to have a mind of their own.

Debra Dalgleish has sample code for working with comments
(resizing/repositioning):
http://contextures.com/xlcomments03.html

> Is there a way to make the default for a cell comment property to "move but
> don't size with cells"?  At present I have to go to properties every time I
> add a comment.
>
> Beemer

Signature

Dave Peterson

Beemer - 06 Oct 2006 06:34 GMT
|I don't know a way of changing that default.
|
[quoted text clipped - 41 lines]
| >
| > Beemer

Dave,

Thanks for this.  My problem is that I have spreadsheets which are say
taking up 6 screen widths.   I add comments to many cells.  If I
subsequently change column widths or hide columns the next time I open the
spreadsheet all the comments have shot off to the extreme left screen.
Moving these back inot position is a major task so I now have to change the
property each time I add a comment.  Is this a bug?  Surely MS programmers
should have made the default to move the comment with the cell?

Beemer
Dave Peterson - 06 Oct 2006 13:06 GMT
If you look at Debra's site, you'll see some code that repositions the comments.

I know that you're not the only person to complain.

> |I don't know a way of changing that default.
> |
[quoted text clipped - 61 lines]
>
> Beemer

Signature

Dave Peterson

Beemer - 11 Oct 2006 10:13 GMT
| If you look at Debra's site, you'll see some code that repositions the comments.
|
[quoted text clipped - 65 lines]
| >
| > Beemer

Dave,  thanks for the link.

Beemer

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.