Link to home
Start Free TrialLog in
Avatar of kristibigo
kristibigoFlag for United States of America

asked on

Excel - How to convert cell values into comments

I have found a VBA program that will take the comments in certain cells and display them onto a separate worksheet - noting the cell reference number, the cell value and the comment.  However, I would like to reverse this capability.  I would like to take a row indicating the cell reference, the cell value, and the comment, and when I run the program, it will insert the comment to the very cell referenced on that row.  For instance:

Cell Reference      Name      Cube/Office
$C$5            John Doe      South 112

Running the VBA program would then go to the cell referenced C5, insert "John Doe" as its value, and insert a comment "South 112".

Is this possible?
Avatar of ragnarok89
ragnarok89

   Range("C5").Value = "John Doe"
    Range("c5").AddComment
    Range("c5").Comment.Visible = False
    Range("c5").Comment.Text Text:=Range("d5").Value
ASKER CERTIFIED SOLUTION
Avatar of byundt
byundt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kristibigo

ASKER

Beautiful!  Thank you!
Thank you for your quick response.