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

Is there a way to programmatically resize the comment
shape that is displayed? I want all of the comment to be
visible without the need to Edit the comment and manually
resize the shape. The ShapeRange.ScaleHeight method has a
scale parameter but it does not appear that the scale can
be set to auto size. Excel 2002, Win XP.

TIA
Tom

  #2   Report Post  
Posted to microsoft.public.excel.programming
pk pk is offline
external usenet poster
 
Posts: 27
Default Sizing Comments

Tom, I have code that will do this, but I can't get at it
until tomorrow. If noone else responds, check back
tomorrow and I'll post a function here that autosizes the
comment in the activecell.

-----Original Message-----
Is there a way to programmatically resize the comment
shape that is displayed? I want all of the comment to

be
visible without the need to Edit the comment and

manually
resize the shape. The ShapeRange.ScaleHeight method has

a
scale parameter but it does not appear that the scale

can
be set to auto size. Excel 2002, Win XP.

TIA
Tom

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Sizing Comments

You can use code similar to the following:
'============================
Sub AutosizeComments()
Dim cmt As Comment
For Each cmt In ActiveSheet.Comments
cmt.Shape.TextFrame.AutoSize = True
Next
End Sub
'=========================

Tom Ulincy wrote:
Is there a way to programmatically resize the comment
shape that is displayed? I want all of the comment to be
visible without the need to Edit the comment and manually
resize the shape. The ShapeRange.ScaleHeight method has a
scale parameter but it does not appear that the scale can
be set to auto size. Excel 2002, Win XP.


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
excel 2000 how to format the comments font all comments Delquestion Excel Discussion (Misc queries) 1 October 8th 09 02:19 PM
Column sizing CJ Charts and Charting in Excel 3 March 12th 09 04:56 PM
in excel useing comments how do you add clip art to comments? dhouse New Users to Excel 2 July 18th 07 08:14 AM
Name Box sizing KenInPortland Excel Discussion (Misc queries) 1 December 21st 05 08:15 PM
Row Sizing Mike@ACM Excel Discussion (Misc queries) 2 July 16th 05 04:04 AM


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