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

Have worksheet in which data entry is driven by userform
selections. A couple of forms have triggers that auto
generate and insert comments into various cells of the
worksheet. I am trying to come up with code that will
format ALL comments to the same ScaleWidth and
ScaleHeight either as they are created OR globally as a
default size defined by me.

Anyone have an idea of how best to handle this, or do I
seek the "impossible". Much thanks for any help.

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

I don't know whether this will work for you, but you can
call the following function, pass it a cell address as a
string and it will "Auto-size" the comment. This reduces
the comment box to the minimum required for display:

Function CommentAutoSize(argAddress As String)

Range(argAddress).Comment.Visible = True
Range(argAddress).Comment.Shape.Select True
Selection.AutoSize = True
Range(argAddress).Comment.Visible = False

End Function

HTH, but if this is way off base, please disregard.

-----Original Message-----
Have worksheet in which data entry is driven by userform
selections. A couple of forms have triggers that auto
generate and insert comments into various cells of the
worksheet. I am trying to come up with code that will
format ALL comments to the same ScaleWidth and
ScaleHeight either as they are created OR globally as a
default size defined by me.

Anyone have an idea of how best to handle this, or do I
seek the "impossible". Much thanks for any help.

.

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
VBA "auto-sizing" comment box DCPan Excel Worksheet Functions 14 October 17th 08 10:08 PM
How can I edit a comment w/o first having to select Show Comment Mary Ann Excel Discussion (Misc queries) 1 August 26th 05 12:34 AM
Row Sizing Mike@ACM Excel Discussion (Misc queries) 2 July 16th 05 04:04 AM
Comment Box Auto-sizing Bill Davis Excel Worksheet Functions 1 April 13th 05 09:25 PM
a comment plugin & copy paste directly from excel to comment ? fr. RFM Excel Worksheet Functions 0 December 1st 04 11:29 PM


All times are GMT +1. The time now is 09:39 PM.

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"