Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing

Status
Not open for further replies.

PATRON58

Technical User
Jun 8, 2007
16
GB
Hello all,

Am quite new to VBA although have briefly (very) used VB.Net.

Have created a series of forms using formula within Excel and am now just about finished. This may seem a simple question but I really don't know what I do next. How do I go about transforming these connected forms into a stand-alone application? I know there was an install wizard in VB.Net but have no idea how to go about making this an installable application with VBA.


Any siggestions would be very much appreciated!

PAtron
 




PAtron,

VBA runs within the application.

You can run any procedure using a number of techinques...

Tools/Macro/Macros - select one and RUN

Associate a Procedure with an Event - like button_click, Worksheet_Change or Worksheet_SelectionChange.

VBA can be compiled in the VB Editor, but it does not create an executable. You just RUN the code that's there.

By "form" do you mean a UserForm control or a Worksheet on which you have designed a "form"???

Skip,

[glasses] When a wee mystic is on the loose..
It's a Small Medium at Large! [tongue]
 
Hi Skip,

Thanks for the quick reply. They are a series of Userforms through which the user inputs data which is then calculated in the worksheet and the calculations displayed back through the objects.

Any idea how I could go about getting it to create an executable?
 




As I stated before, there is NO executable.

Usually from a Userform, you run various code using control events.

Show the form, for instance, in the Workbook_Open event.

Explain in more detail, how your application should work.

Skip,

[glasses] When a wee mystic is on the loose..
It's a Small Medium at Large! [tongue]
 
It is a series of userforms which start off at a login before going onto some others for performing loads of calculations.

Currently to get to the first sreen the user needs to open excel, open the file, to the editor, find the login screen and then press the run button. A bit long in the tooth at the moment.

I would like to get the first form to be openable straight from an icon on the desktop but have no idea as to how to go about this.

Patron
 


On the desktop, a shortcut to your workbook.

In the Workbook_Open event
Code:
Private Sub Workbook_Open()
   LogonForm.Show
End Sub


Skip,

[glasses] When a wee mystic is on the loose..
It's a Small Medium at Large! [tongue]
 
Golly, its as simple as that? Yikes. Thought it would be far more around the houses. Thank you very much skip, will give it a try.

Thank you!

Patron
 



Be aware that the Workbook_Open event is in the ThisWorkbook Object, Code Window.

Skip,

[glasses] When a wee mystic is on the loose..
It's a Small Medium at Large! [tongue]
 
Yep, that did the trick brilliantly!

Thank you very much,


Patron
 
Skip,

According to my spouse, it's a good idea to punch-out a contented seance leader whenever possible. As she likes to put it:

"Always try to stike a happy medium!"

----------------------------------------------------------------------------------
"A committee is a life form with six or more legs and no brain." -- L. Long
 



I always thot that it was apply a switch to a witch, which was waxing wacky-cackle.

Skip,

[glasses] When a wee mystic is on the loose..
It's a Small Medium at Large! [tongue]
 
Skip,

I surrender!!
[wink]

----------------------------------------------------------------------------------
"A committee is a life form with six or more legs and no brain." -- L. Long
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top