Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The things one learns about from the Excel community! I'd never really
looked into the clipboard - I found this link under another thread: 'http://www.word.mvps.org/FAQs/MacrosVBA/ManipulateClipboard.htm. Just got to remember to tick M/soft Forms Library in Tools, References (or make a userform and then remove it). Didn't know Excel could speak either! Sub PasteIntoComment() Dim MyData As DataObject Dim strClip As String Set MyData = New DataObject MyData.GetFromClipboard strClip = MyData.GetText Range("E2729").AddComment "SteveW:" & Chr(10) & MyData.GetText Application.Speech.Speak MyData.GetText End Sub "Steve Walton" wrote: I want to be able to create a comment for the current cell and add the text currently in the Paste buffer. The macro works fine, but hard codes the text into the macro Range("E2729").Comment.Text Text:= _ "SteveW:" & Chr(10) & "hard code text....!" How can I get it to insert paste buffer ? -- Steve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i create a macro that would check the contents of cells | Excel Discussion (Misc queries) | |||
how do i create a macro that would check the contents of cells | Excel Discussion (Misc queries) | |||
copy multiple worksheets of a workbook, and paste onto a Word document ( either create new doc file or paste onto an existing file.) I need this done by VBA, Excel Macro | Excel Programming | |||
a comment plugin & copy paste directly from excel to comment ? fr. | Excel Worksheet Functions | |||
Macro cut and paste quits, can't re-create | Excel Programming |