Calling user form on another workbook

b0unce

Board Regular
Joined
Apr 22, 2009
Messages
75
Hi guys,

I have searched the forum as well as google, but could not find explanation to my problem.
Currently my macro copies some information and pastes it to another workbook which has a userform. After the data is copied I want the user to be prompted with the user form. How can I do that?

UserForm.Show does not work, because I call it in different workbook that the form is. Any ideas?

Thanks!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
You need a macro in the other workbook that shows the userform, then call that macro.
 
Upvote 0
Could you please write a code to run a macro from another workbook?
On the one, which has that form I want to show, I have created a Public Sub.
 
Upvote 0
It's just:
Code:
Application.Run "'other workbook name.xls'!macro_name"
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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