Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Create Cell Comment based on text in a cell on another worksheet

I have comments on all of my products stored in a separate worksheet. Is it
possible to add a comment to a product name cell that automatically links to
the text in that other worksheet? Either a direct cell reference or a table
lookup would work, but I don't see any way to put a formula into a comment.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Create Cell Comment based on text in a cell on another worksheet

http://www.microsoft.com/office/comm...9-bb11a6048134
--
Gary''s Student
gsnu200710


"Dave Fellman" wrote:

I have comments on all of my products stored in a separate worksheet. Is it
possible to add a comment to a product name cell that automatically links to
the text in that other worksheet? Either a direct cell reference or a table
lookup would work, but I don't see any way to put a formula into a comment.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Create Cell Comment based on text in a cell on another worksheet



Try this inserted into the sheet where you enter the product name. I have
assumed products are entered in a series of cells in column A. If it only one
cell then change Target.Column = 1 to Target.Address = "$A$10" (or whatever
address is).

Right click on tab, view code and copy and paste

Table of Product and its corresponding comment are on Sheet2, columns A & B.

If no Product is found, then no comment is added.

HTH



Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
Dim res As Variant
On Error GoTo ws_exit
Application.EnableEvents = False
Set rng = Worksheets("Sheet2").Range("A:B") '<=== Product/Comment table
in Sheet2
If Target.Column = 1 Then ' <=== Data entered in Column A
res = Application.VLookup(Target.Value, rng, 2, 0)
If Not IsError(res) Then
Target.AddComment
Target.Comment.Text Text:=res
End If
End If
ws_exit:
Application.EnableEvents = True

End Sub


"Dave Fellman" wrote:

I have comments on all of my products stored in a separate worksheet. Is it
possible to add a comment to a product name cell that automatically links to
the text in that other worksheet? Either a direct cell reference or a table
lookup would work, but I don't see any way to put a formula into a comment.

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 Excel create a conditional Comment on a cell? Desmond Excel Worksheet Functions 4 February 16th 07 05:05 PM
Create comment from cell range MikeG Excel Discussion (Misc queries) 2 September 26th 06 07:19 PM
Can I do conditional formula based on data in cell comment? da@DRI Excel Discussion (Misc queries) 4 August 18th 06 05:31 PM
Create formula that will pull a value based on text in diff cell? So Tru Geo Excel Discussion (Misc queries) 0 June 22nd 06 08:16 PM
linking to a cell within a text cell or comment BlueJ2005 Excel Worksheet Functions 0 May 11th 06 10:36 PM


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