Range("B1").NoteText "Hi. I'm a comment"
Range("B2").NoteText "When this code was exicuted, the value in A1 was " & Range("A1").Text
Range("B3").NoteText "Comments do not contain dynamic contents" & vbCr & "Auto updating the comment in B2 would require VBA"
Code:Range("B1").NoteText "Hi. I'm a comment" Range("B2").NoteText "When this code was exicuted, the value in A1 was " & Range("A1").Text Range("B3").NoteText "Comments do not contain dynamic contents" & vbCr & "Auto updating the comment in B2 would require VBA"
Or you could use the MacroRecorder to find a different syntax for adding a comment.
Range("G4").NoteText Range("G4").Text & "random text: " & Range("h4").Text & "random text " & vbCr & "random text" & Range("i4").Text & " random text" & vbCr & Range("g4").Text & " random text " & Range("j4").Text & " random text " & vbCr & "kljölkj lökjölkj " & Range("k4").Text & " jlaösjfdslkfjsdlök " & vbCr & "text text tdslfaj " & Range("l4").Text
I can't replicate that behavior.I first loaded with your text... then changed to my text.... and now still yours text are still in the comment.... How to get it to update the data?