Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub CaptureText()
Set r = Range("Z9:Z48") For Each rr In r rr.Offset(0, -1).NoteText rr.Value Next End Sub -- Gary''s Student - gsnu200830 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Gary
thank you so much for the quick reply. It works. Juan "Gary''s Student" wrote: Sub CaptureText() Set r = Range("Z9:Z48") For Each rr In r rr.Offset(0, -1).NoteText rr.Value Next End Sub -- Gary''s Student - gsnu200830 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You are very welcome!
-- Gary''s Student - gsnu200830 "Juan" wrote: Gary thank you so much for the quick reply. It works. Juan "Gary''s Student" wrote: Sub CaptureText() Set r = Range("Z9:Z48") For Each rr In r rr.Offset(0, -1).NoteText rr.Value Next End Sub -- Gary''s Student - gsnu200830 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy cell to another as a comment | Excel Worksheet Functions | |||
copy a comment from one file to another | Excel Discussion (Misc queries) | |||
copy comment content to cell content as data not as comment | Excel Discussion (Misc queries) | |||
How do I copy text from a cell into a comment? | Excel Discussion (Misc queries) | |||
a comment plugin & copy paste directly from excel to comment ? fr. | Excel Worksheet Functions |