VBA - User form call in excel button

nitinsharma_16

New Member
Joined
Nov 17, 2015
Messages
12
Hi Team,

I made a user form macro. It is successfully run in vba by pressing F5.

I want a button in excel sheet, so that user can click on button and my User form will call.

thanks,

Nitin
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Assuming a form called Userform1, the basic code is:

Code:
Dim fm as Userform1
set fm = New Userform1
fm.show
 
Upvote 0
Just add a Form button and assign a macro that includes that code.
 
Upvote 0
Error message is showing,

Cannot run the Macros "GTM projects et...". The macros may not be available in this workbook or all macros may be disabled
 
Upvote 0
Are macros enabled?
 
Upvote 0
How did you assign the macro, what did you actually assign, what does the full macro code look like, and which module is it located in?
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,795
Members
449,048
Latest member
greyangel23

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