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

vba in vb application

Status
Not open for further replies.

chopin33

Programmer
Jun 24, 2002
5
CA
hello,
can I insert my vba code for excel into the code of a vb application if I've created an Excel sheet object in the vb code: Set ApExcel = CreateObject("Excel.sheet")?
Thanks!

Xian
 
Hello Xian,

As long as you make your your VB project includes a reference to the Microsoft Excel Object Library (Project -> References ->[Scroll down and place a checkmark to Microsoft Excel {Version Number} Object Library]), you should be able to use the VBA Code with the Excel sheet.

Hope this helps,
Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top