start excel (excel2003) via OLE-connection - no personal.xls???

M

M.Erlinger

hello

i have the problem, when i start the excel-application via OLE-Connection
(from PowerBuilder)
-------------------------
ll_Rc = inv_EXCEL.ConnectToObject('',"Excel.application" )
if ll_Rc < 0 then
ll_Rc = inv_EXCEL.ConnectToNewObject( 'Excel.Application' )
end if
------------------------

the personal.xls is not loaded and i have no access to my macros......?? if
start excel normal in windows - my personal.xls is loaded and all my macros
are available.

have anyone a clue for my problem
many thank's in advance
Michael
 
C

Chip Pearson

When Excel is opened via automation, it doesn't perform its
standard startup procedures, such as loading workbooks in the
XLStart folder. This is by design, in order to make Excel start
faster. You have to open the workbooks yourself. E.g.,

inv_EXCEL.Workbooks.Open(inv_EXCEL.Path &
"\XLStart\Personal.xls")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
M

M.Erlinger

o.k. --> thank's for your clue!!!!
Michael


Chip Pearson said:
When Excel is opened via automation, it doesn't perform its standard
startup procedures, such as loading workbooks in the XLStart folder. This
is by design, in order to make Excel start faster. You have to open the
workbooks yourself. E.g.,

inv_EXCEL.Workbooks.Open(inv_EXCEL.Path & "\XLStart\Personal.xls")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top