Array output and comment

  • Thread starter Thread starter Torben Laursen
  • Start date Start date
T

Torben Laursen

Hi

I have a function that my user calls and it returns a array of values into
the cell's he has marked.

But is it possible to add a different comment to each cell every time the
function updates like when an input cell is changed?

Thanks Torben
 
I could use a function like this to update a comment in that cell with the
formula:

Option Explicit
Function myFunct(rng1 As Range, rng2 As Range) As Double
With Application.Caller
If .Comment Is Nothing Then
'do nothing
Else
.Comment.Delete
End If
.AddComment Text:="Hi there " & Format(Time, "hh:mm:ss")
End With
myFunct = rng1.Value + rng2.Value
End Function

Maybe it'll help you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top