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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Take Excel VBA to VB6?

Status
Not open for further replies.
Jul 22, 2002
25
US
All,

Is it possible to get all of my Excel VBA stuff and open it in VB6? I need the code (of course) and the forms too. The code shouldn't be a big deal, even if it was a cut and paste, but what about the forms?


Thanks,

Mr. Pickles
 
You would have to completely re-draw and code your forms if you're going to convert your Excel app into VB6, or you can use the Excel Object in VB and interact with you Excel application using automation. Neil Konitzer
Freisoft
 
I just imported a VBA form into VB6. It went into the designers folder.

I just added a little code, userform1.show referring to it, ran it and it worked.

The help file says:

Note The Microsoft Forms designer is included in all versions of Visual Basic, to allow forms created in Microsoft Office applications to be ported easily. Like all designers, the Microsoft Forms designer has its own run-time .dll. Using this designer in a Visual Basic project will therefore increase the memory requirements of the resulting executable.

So it can be done. What restrictions apply, I don't know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top