Copy Text into comment box

J

Juan

Hi,
I'm trying to modify the macro below, but can't seem to get it.
Sub comnt()
Range("a2").Select
Dim tst As String
tst = ActiveCell.Value
'apply variable to the desired location
Range("d2").NoteText tst

Basically, some rows in range Z9:48 contain text, which I want to copy
into range Y9:Y48 as comment box.
The macro does work if I put Range("Z9").select Range(Y9").NoteText tst
Which will just do that row.

would appreciate any help.
Thank you,
Juan
 
G

Gary''s Student

Sub CaptureText()
Set r = Range("Z9:Z48")
For Each rr In r
rr.Offset(0, -1).NoteText rr.Value
Next
End Sub
 

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

Top