Hello
I Need To Add Comments To Range of Cells Automatically when I Select That Sheet .
The Range have Two or more column not just one .First range have value of Comments and need to put them as a Comment for second Range.
I find simple way to do that but just for one cell
Sub AddComments()
[m5].ClearComments
[m5].AddComment
[m5].Comment.Text Format([J5])
[m5].Comment.Visible = False
[m5].Comment.Shape.TextFrame.AutoSize = True
End Sub
In this simple code I put value of Cell J5 as a Comment for Cell M5. i Could Repeat this but Cells are so many and that code will be long and not professional.
More Details:
My Sheet Name is : Matches
Cells range contain value of Comments are HM4:HQ203 ( 5 columns HM , HN , HO , HP , HQ From Cell 4 to 203 Each one)
Value of These Cells must put as Commet of Cells Range I4:M203 ( 5 Columns I , J , K , L , M From Cell 4 to 203 )
HM4:HQ203 =======> I4:M203
so for example:
Cell I4 will get value of HM4 as a comment ,
Cell J203 Will get value of HN203 as a comment,
Cell L100 will get Value of HP100 as a comment,
Cell M5 will get value of HQ5 as a comment.
.....
I need it be automated every time those cells changes make those comments changes too , i dont want use button and asign macro to run this macro.
Probably I need a loop thing like 2 Inside For Next to do this but I'm not good in VBA yet.
Thanks
Bookmarks