View Single Post
 
Old 03-06-2017, 08:56 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

The first part:

Code:
Sub CopyTextBoxToClipBoard(ByRef strIn As String)
Dim myCopy As DataObject
'Must have a reference to Microsoft Forms 2.0 Object Library enabled
Set myCopy = New DataObject
myCopy.SetText strIn
myCopy.PutInClipboard
End Sub
Function GetFromCB() As Variant
Dim myPaste As DataObject
Set myPaste = New DataObject
'Must have a reference to Microsoft Forms 2.0 Object Library enabled
myPaste.GetFromClipboard
GetFromCB = myPaste.GetText(1)
End Function
Sub Demo()
  MsgBox GetFromCB
End Sub
The second part. Yes. See: http://gregmaxey.com/word_tip_pages/...der_addin.html
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote