A Possibly Simple MsgBox Question...

Lidsavr

Active Member
Joined
Jan 10, 2008
Messages
330
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:
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?:confused:

Thank you for your help,

Charles
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Do I need to use something else besides a messagebox?

Yes Charles, you will want to use a userform, that you create and lay out the way to you want. A textbox or label can then contain the text.
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,608
Members
452,930
Latest member
racefanjtd

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top