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

wrapping an excel vba app in vb?

Status
Not open for further replies.

deetee2k

Programmer
Nov 25, 2000
90
IE
Hi,

I have created an excel vba app which runs ok and all the users are happy. However, now I want to convert it into a VB app so it can do other wonderful things. Does anyone know how to do this with a minimum of fuss? The target audience will have office installed.

Thanks,

D. "I want to play..."
(Guess the X-Files episode!)
 
Dim objExcel as Object ' Use late binding to be independent of Excel version

objExcel = CreateObject(Excel.Application)

With objExcel

...{Your existing VBA code} ...

.Quit

End With

Set objExcel = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top