What code do I need to use to instruct a VBA form to copy one or several text strings to clipboard at the activation of one button? Essentially I want to compile different text strings then paste in (any other) application with single <ctrl+v>.
I have figured out how to write the code to copy a SINGLE text string to clipboard using a single button click and here is my code:
Sub Button1_Click()
Dim objData As NewMSForms.DataObject
Dim strText
strText = "1st attempt - no contact; left VM"
objData.SetTextstrText
objData.PutInClipboard
End Sub
#noobiequestion
I have figured out how to write the code to copy a SINGLE text string to clipboard using a single button click and here is my code:
Sub Button1_Click()
Dim objData As NewMSForms.DataObject
Dim strText
strText = "1st attempt - no contact; left VM"
objData.SetTextstrText
objData.PutInClipboard
End Sub
#noobiequestion