Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a table which lists: project name, date, value
In a cell on a different worksheet I use an array forumla to add up the "values" which meet the "date" criteria. I would like to automatically add comments to this cell which lists the "project names" it has added up -- Thanks Andrew |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Andrew,
Comments are one of the few aspects of the Excel environment you can manipulate from a UDF: Public Function CommentTest(argValue As Variant) As String Dim com As Comment On Error Resume Next Set com = Application.Caller.AddComment If Err.Number 0 Then Set com = Application.Caller.Comment On Error GoTo 0 With com .Text "Comment added by a UDF" & vbNewLine, , False End With CommentTest = "Returned Value" End Function NickHK "Andrew" wrote in message ... I have a table which lists: project name, date, value In a cell on a different worksheet I use an array forumla to add up the "values" which meet the "date" criteria. I would like to automatically add comments to this cell which lists the "project names" it has added up -- Thanks Andrew |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically create comments based upon cell value and related datain database | Excel Discussion (Misc queries) | |||
Automatically fill cell value | Excel Worksheet Functions | |||
Automatically change cell comments | Excel Programming | |||
List image names into col & fill cell comments with corresp images | Excel Programming | |||
Can Comments be automatically converted to text cell values? | Excel Discussion (Misc queries) |