#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Comments

Can you code a comments box to work like :

=Sheet1!B2

And have the value in Sheet1 B2 displayed int he comments box?
Or is there a way to code a Comments box on a Cell?

Corey....


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Comments

Corey:

You need to use code: and it is a little rigid as you need to use a
worksheet change event.

The solution is to have a table with the cell reference and the text and
work it that way.


Private Sub Worksheet_Change(ByVal Target As Range)

If Not (Intersect(Target, Range("B1")) Is Nothing) Then
On Error Resume Next
Range("A1").AddComment
Range("A1").Comment.Visible = False
Range("A1").Comment.Text Text:=Range("B1").Value
End If
End Sub




--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Corey" wrote:

Can you code a comments box to work like :

=Sheet1!B2

And have the value in Sheet1 B2 displayed int he comments box?
Or is there a way to code a Comments box on a Cell?

Corey....



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
Comments hendrikb New Users to Excel 2 July 29th 08 03:55 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
comments chartasap Excel Discussion (Misc queries) 0 September 26th 06 10:21 PM
Comments. DB. New Users to Excel 6 July 18th 06 11:17 PM


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