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

VBA Coding Opening Excel 1

Status
Not open for further replies.

DanSc0tt

MIS
Sep 17, 2001
30
0
0
DE
Hi,

Have the following code to open excel


Dim objXLApp As Object
Dim objXLBook As Object


Set objXLApp = CreateObject("Excel.Application")
objXLApp.Workbooks.Add
Set objXLBook = objXLApp.ActiveWorkbook

The code does not appear to work. However when I go and open Excel manually it opens to workbook 16 - it seems like it is opening workbooks in the background somewhere, but not giving me sight of them???

Any help would be great!

Thanks

Dan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top