Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
comment function
I'm trying to create a fucntion that references the comment in a cell. Below
is what I have but it's obviously flawed somehow but dont know how to fix it. Any help? Many thanks in advance. Function Comment(MyCell) Comment = MyCell.Comments End Function |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
comment function
try
Function Comment(MyCell) Comment = MyCell.Comment.text End Function "BillyJ" wrote: I'm trying to create a fucntion that references the comment in a cell. Below is what I have but it's obviously flawed somehow but dont know how to fix it. Any help? Many thanks in advance. Function Comment(MyCell) Comment = MyCell.Comments End Function |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
comment function
Function show_comments(r As Range) As String
Dim cmt As Comment show_comments = "" Set cmt = r.Comment If cmt Is Nothing Then Exit Function End If show_comments = cmt.Text End Function Sadly, this is not very volitile. So if you put a comment in A1 after you have entered =show_comments(A1) in another cell, nothing will happen until the sheet gets re-calculated. -- Gary''s Student "BillyJ" wrote: I'm trying to create a fucntion that references the comment in a cell. Below is what I have but it's obviously flawed somehow but dont know how to fix it. Any help? Many thanks in advance. Function Comment(MyCell) Comment = MyCell.Comments End Function |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cannot empty clipboard" | Excel Discussion (Misc queries) | |||
VBA | Excel Worksheet Functions | |||
Date & Time | New Users to Excel | |||
Conversion | Excel Worksheet Functions | |||
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. | Excel Worksheet Functions |