I am new to VB and am struggling to find a more elegant way of inserting comments into a range of cells (c2:d35) so have brute forced it. I would also like to autosize the comments but don't want to create this the same way as I have inserted the comments. Any help you can provide would be much appreciated.
Here is the code to insert the comments, I have eliminated the all but the last line.
range("d35").AddComment range("Cd35").Value
Here is the code where I re-size the comment fields. Again it works but I don't want to retype it all in for each cell range.
Set mycomment = range("c2") '.Comment
mycomment.Comment.Shape.TextFrame.AutoSize = True
mycomment.Comment.Visible = True
Thanks in advance for your help.
Here is the code to insert the comments, I have eliminated the all but the last line.
range("d35").AddComment range("Cd35").Value
Here is the code where I re-size the comment fields. Again it works but I don't want to retype it all in for each cell range.
Set mycomment = range("c2") '.Comment
mycomment.Comment.Shape.TextFrame.AutoSize = True
mycomment.Comment.Visible = True
Thanks in advance for your help.