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

Hello, I hope somone can help me out.

I am using VBA in Excel XP with Windows 2000.

I have some VBA that adds a cell comment:

[A1].AddComment MyText

Now, I would like to "AutoSize" the comment. Everything I
have tried has failed. I want to leave the comment so that
only the cell indicator is visible.

Your example code to create a cell comment, "AutoSize" it,
and close it, would be most appreciated. Thanks in
advance...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Cell comments

[A1].Comments.Add Hidden:=True "My comment"

will display just the comment indicator on the cell, and
pop up the comment like a hint when moving the mouse
pointer over the indicator.

Regards,

Dag :) -- DagOystein.Johansen AT sage.com


-----Original Message-----
Hello, I hope somone can help me out.

I am using VBA in Excel XP with Windows 2000.

I have some VBA that adds a cell comment:

[A1].AddComment MyText

Now, I would like to "AutoSize" the comment. Everything I
have tried has failed. I want to leave the comment so

that
only the cell indicator is visible.

Your example code to create a cell comment, "AutoSize"

it,
and close it, would be most appreciated. Thanks in
advance...
.

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

The following discussion deals with this problem.

http://groups.google.com/groups?hl=e... icrosoft.com

HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------
On Mon, 22 Sep 2003 10:59:12 -0700, "pk" wrote:

Hello, I hope somone can help me out.

I am using VBA in Excel XP with Windows 2000.

I have some VBA that adds a cell comment:

[A1].AddComment MyText

Now, I would like to "AutoSize" the comment. Everything I
have tried has failed. I want to leave the comment so that
only the cell indicator is visible.

Your example code to create a cell comment, "AutoSize" it,
and close it, would be most appreciated. Thanks in
advance...


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Cell comments

[A1].Comment.Shape.TextFrame.AutoSize = true

--
Regards,
Tom Ogilvy


pk wrote in message
...
I can already do this!
What I need is code to "AUTO SIZE" the comment after it is
created...any ideas on that?

-----Original Message-----
[A1].Comments.Add Hidden:=True "My comment"

will display just the comment indicator on the cell, and
pop up the comment like a hint when moving the mouse
pointer over the indicator.

Regards,

Dag :) -- DagOystein.Johansen AT sage.com


-----Original Message-----
Hello, I hope somone can help me out.

I am using VBA in Excel XP with Windows 2000.

I have some VBA that adds a cell comment:

[A1].AddComment MyText

Now, I would like to "AutoSize" the comment. Everything

I
have tried has failed. I want to leave the comment so

that
only the cell indicator is visible.

Your example code to create a cell comment, "AutoSize"

it,
and close it, would be most appreciated. Thanks in
advance...
.

.



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
Extract Cell Comments and Paste as text in a cell Goaliemenace Excel Worksheet Functions 3 October 19th 09 10:28 PM
excel 2000 how to format the comments font all comments Delquestion Excel Discussion (Misc queries) 1 October 8th 09 02:19 PM
print comments using cell contents, not cell# dickenswick Excel Discussion (Misc queries) 3 September 20th 06 11:48 PM
Need to add cell comments in unlocked cell on protected worksheet dan400man Excel Discussion (Misc queries) 3 December 16th 05 08:02 PM
Cell Comments dmm129 Excel Discussion (Misc queries) 3 October 28th 05 07:54 PM


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