LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Resizing comment boxes

I'm having trouble with the code to change the size of a comment box. My
code is below:

With Range("C17")
.AddComment
.Comment.Visible = False
.Comment.Text Text:=_
"Remove tube cover and measure across resistor. 1V=1mA
(Note: this involves removing the label on the rear of the tubehead and the
stick-on covers each side of the collimator)"
Selection.ShapeRange.ScaleHeight 1.37, msoFalse, msoScaleFromTopLeft
End With

I got the code for resizing the box from a macro I recorded which is below:

Range("C17").Select
Range("C17").AddComment
Range("C17").Comment.Visible = False
Range("C17").Comment.Text Text:= _
"Remove tube cover and measure across resistor. 1V=1mA (Note: this
involves removing the label on the rear of the tubehead and the stick-on
covers each side of the collimator)"
Selection.ShapeRange.ScaleHeight 1.37, msoFalse, msoScaleFromTopLeft

Any help will be appreciated as always

Ian


 
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
Comments boxes resizing HeatherBelle Excel Discussion (Misc queries) 3 December 2nd 08 06:29 PM
Resizing "comments" boxes in a workbook all at once rita Excel Discussion (Misc queries) 2 February 18th 05 01:41 AM
Comment Boxes Steved Excel Worksheet Functions 2 January 25th 05 09:55 PM
comment boxes w-domo Excel Discussion (Misc queries) 1 January 21st 05 01:30 PM
Comment Boxes John M[_5_] Excel Programming 3 November 13th 03 04:02 AM


All times are GMT +1. The time now is 11:18 AM.

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"