Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert comment in a cell Excel

Is it possible to define the width and length of the comment in a cell by
Excel programming? Such a button in the Excel sheet, which add a comment in a
cell and this comment would have the length and width desired.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 417
Default Insert comment in a cell Excel

Experiment with the following:

'----------------------------------------------------------------------
Public Sub TestCommentSize()
Dim rngA1 As Range
Dim comA1 As Comment

Set rngA1 = ActiveSheet.Range("A1")

With rngA1
.ClearComments
.AddComment "This is a very big, very long comment to test sizing."
Set comA1 = .Comment
End With

With comA1.Shape
.Height = 100
.Width = 50
End With
End Sub

--
Regards,
Bill Renaud



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
Can insert digital ink into Excel cell or a cell comment? Nickbray Excel Discussion (Misc queries) 1 June 2nd 10 03:53 AM
in the Excel 2010 Beta, how do I insert a comment on a cell? ketzjosh Excel Discussion (Misc queries) 2 December 19th 09 04:10 AM
Insert comment to Cell ManhattanRebel Excel Discussion (Misc queries) 1 January 10th 09 01:09 PM
In Excel, can I insert a photo into a comment cell? Jayhawk Txn Excel Discussion (Misc queries) 2 August 31st 05 10:04 PM
How do I insert a comment when the Insert:Comment menu is greyed? none Excel Discussion (Misc queries) 0 May 19th 05 12:36 AM


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