Userform output, once macro is run

tdownwa

New Member
Joined
Jul 27, 2011
Messages
4
Hi all,

I have a userform that contains a "Run" command button, which outputs the data from the userform to a worksheet(s) and runs a macro combining the worksheets together and removing dublicate data.

What Im wondering is once the macro is complete is it possible to take that output and send it back into a second userform that displays the results?

If so, my macro takes two worksheets and after combining the data together and removing the duplicate info, leaves the "output" in worksheet1. My thought is somehow importing those results into a new userform which will be printable.

Here's my current userform code:


<!-- BEGIN TEMPLATE: bbcode_code -->Code:
Private Sub CommandButton1_Click()
Call Macro1
End Sub
Private Sub TextBox1_Change()
Sheet1.Range("A1").PasteSpecial Paste:=xlPasteFormulasAndNumberFormats = Me.TextBox1.Value
End Sub
Private Sub TextBox2_Change()
Sheet2.Range("A1").PasteSpecial Paste:=xlPasteFormulasAndNumberFormats = Me.TextBox2.Value
End Sub

<STYLE>.alt2 font {font: 11px monospace !important;color: #333 !important;}</STYLE>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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