pasting in cell comments

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Thanking you for any assistance in advance.

Can you please tell me if it is possible to use VBA to allow pasting into
cell comments. I am wanting to take info from one spreadsheet and insert it
as a cell comment in another.


Many regards


John
 
This should do it.

Sub comnt()
'assign cell value to a string variable
Range("a2").Select
Dim tst As String
tst = ActiveCell.Value
'apply variable to the desired location
Range("d2").NoteText tst

End Sub
 
Thanks DMoney, worked great

DMoney said:
This should do it.

Sub comnt()
'assign cell value to a string variable
Range("a2").Select
Dim tst As String
tst = ActiveCell.Value
'apply variable to the desired location
Range("d2").NoteText tst

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

Back
Top