Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm trying to copy a range in my worksheet then paste this to a single comment in a neighbouring cell. So far I've found this code for pasting from the clipboard to a comment (courtesey of Bob Greenblatt).... Sub InsertComment() Dim oComm As DataObject Set oComm = New DataObject With ActiveCell .AddComment oComm.GetFromClipboard .Comment.Text Text:=oComm.GetText(1) End With End Sub however I get an error (user type not defined) - so I must have left something out. Any ideas anyone?? I want to... Range("H11").AddComment "" Sheets("KPI values").Select Range("B9:C50").Select Selection.Copy then paste this into the comment box.... ??? THANKS, Mel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Paste from clipboard only | Excel Worksheet Functions | |||
clipboard copy & paste | Excel Discussion (Misc queries) | |||
Store clipboard before "vba do cut&paste" then recover stored information to clipboard? | Excel Programming | |||
a comment plugin & copy paste directly from excel to comment ? fr. | Excel Worksheet Functions | |||
Paste, clipboard | Excel Programming |