I designed my VBA project wrong from the beginning, how do I get out of the corner now.

1953emp

New Member
Joined
Jul 22, 2014
Messages
13
I am using Excel 2010 VBA7.0


I started from a workbook developer tab, selecting the Visual Basic tab, I inserted a form for a GUI and proceeded to populate it with various widgets, all the underlying code in the same form. It is huge and unwieldy but works great. The only way I can start it is to open the workbook, click on developer, click on Visual Basic and click the little green RUN arrow. I wanted to be able to start this from a START button on the workbook, but I am now painted into a corner. I've tried to separate the parts by starting a new project, breaking things out into modules with no success.


Is there a way for me to get to where I want to be, running this from a START button instead of going through all the clicks.


Thanks all


emp53
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Are you talking about a userform, or just controls on a sheet?
 
Upvote 0
Are you talking about a userform, or just controls on a sheet?
Two things I forgot to state: I am developing on Win7, deploying on Win10. The Win10 deployment works, The people using this are not too computer saavy and I don't want the mucking around in the guts of this app.
Thanks for the response
 
Upvote 0
Regardless of OS you should be able to put a button/shape on the sheet & assign a macro to it, that shows the form.
 
Upvote 0
Here's the project layout, There is no named macro, I just started designing.
project_screen_capture.png
 
Upvote 0
You can simply assign a macro like this
VBA Code:
Sub Launch()
   UserForm1.Show
End Sub
To a shape or Form control button on a sheet, which will then show the userform
 
Upvote 0
You can simply assign a macro like this
VBA Code:
Sub Launch()
   UserForm1.Show
End Sub
To a shape or Form control button on a sheet, which will then show the userform
I implemented it as you recommended and all is working as I desire it to. Thanks for all your help. How do I mark this as solved?
 
Upvote 0
You're welcome & thanks for the feedback.

We don't mark threads as solved here :)
 
Upvote 0

Forum statistics

Threads
1,215,767
Messages
6,126,773
Members
449,336
Latest member
p17tootie

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