View Single Post
 
Old 05-05-2019, 12:21 AM
subrota subrota is offline Windows 10 Office 2013
Novice
 
Join Date: Apr 2019
Posts: 11
subrota is on a distinguished road
Default Copy all items from listbox and paste to word document

I have a listbox with items . Now I want to copy the items as a list and paste to the word document. I can not select the listbox all item as string.

Code:
Dim strClipText As DataObject
'Dim strInputText As String
'Set strClipText = New DataObject
'
'strInputText = listbox1.text
'
'strClipText.SetText strInputText
'strClipText.PutInClipboard
Reply With Quote