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!

Compile VBA forms into exe?

Status
Not open for further replies.

AncientTiger

Programmer
Jul 5, 2001
238
US
Just out of curiosity, is there a way to export and compile VBA projects? Is there something in Win2000/XP that does this, or something that I'm not seeing in the Office2000 suite?
------------------------------------
[yinyang] 18 years of programming, and still learning every day! [yinyang]
 
Yes...
You can export them into DESIGNER forms...
Then compile them with VisualBasic 5/6/.net
They will import as a DESIGNER form... and you will NOT have the same options as you do with VB forms... but YES you can compile and make an EXE out of a VBA form, etc... using (real) Visual Basic.
(Note one advantage of using Real VB from the start is a right click menu (Copy, Cut, Paste...) on text boxes... this is not a standard option for Designer Forms) Sometimes... the BASIC things in life are the best...
cheers.gif

or at least the most fun ;-)
-Josh Stribling
 
Ok... so is there a way to do this if you don't have the Visual Basic editor?
------------------------------------
[yinyang] 18 years of programming, and still learning every day! [yinyang]
 
No...
You Have too purchase Visual Basic Development package to make EXEs...
The concept is you can sell EXEs and make profit...
VBA is designed for Macros... You HAVE to have Word, Excel,... to be able to use a VBA macro since it is stored within the Document...
If you were Able to generate EXEs from within Office VBA... there would be no need for VB Development package... (Microsoft is not dumb... and Bill Gates OBVIOUSLY likes the money...)
VBA is very powerful... but it is still a tease...
after using VBA for a while you WILL want to be able to make stand alone programs...
For the simple fact that Not Everyone Has MSOffice...
On the flip side... If you purchase VB Dev... You "Could" make your "Own" Office Suite... Given, you had the skills to know how...

So to sum it all up... No VBA has NO compiling capabilities...
They want you to LIKE VBA so you will BUY VB Dev...
VBA is like a permenant Trial Version with Limitations.
VB Dev is worth every penny... I highly sugest the purchase...
It has virtually NO limitations. Sometimes... the BASIC things in life are the best...
cheers.gif

or at least the most fun ;-)
-Josh Stribling
 
Ok... worth a shot anyways.

Thanks
------------------------------------
[yinyang] 18 years of programming, and still learning every day! [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top