I am running Excel 2007.
I have written code that does a search of part names after a part number is selected in a listbox. This works great.
I have a MsgBox that displays the information. However, the user cannot copy the information and then paste it into another application.
Is there a way to alter my code so users can do this? Do I need to use something else besides a messagebox?
Here is the portion of the code that creates the msgbox:
Will someone help me figure out what to use to allow users to copy the data provided to them?
Thank you for your help,
Charles
I have written code that does a search of part names after a part number is selected in a listbox. This works great.
I have a MsgBox that displays the information. However, the user cannot copy the information and then paste it into another application.
Is there a way to alter my code so users can do this? Do I need to use something else besides a messagebox?
Here is the portion of the code that creates the msgbox:
Code:
Dim MyVar As String
Range("I1").Value = MyVar1
MsgBox ("The name of the part that you are searching is:" & Chr(13) & _
" " & Chr(13) & MyVar)
Will someone help me figure out what to use to allow users to copy the data provided to them?
Thank you for your help,
Charles