R
RzB
Using Access 2002/3 and DAO and Office 2002/3..
I have an Access application that creates a new
spreadsheet basically using the code below...
---------------------------------------------------------------
Set m_objXlApp = New Excel.Application
m_objXlApp.Visible = False
'Now create sheets, fill in cells and format stuff
'This may take a few minutes as there is a lot to process...
m_objXlApp.Quit
Set m_objXlApp = Nothing
---------------------------------------------------------------
While the spreadsheet is being created I present
the user with a a simple form giving them
feedback on the progress. I make sure they are
unable to do anything else on my Access
application while this is going on.
It all works really well but there is one problem...
If they have Excel open or they try to open
Excel while the process is executing then it
all screws up. Is there some way that I can
stop this from happening? What am I missing..
Thanks,
Roy
I have an Access application that creates a new
spreadsheet basically using the code below...
---------------------------------------------------------------
Set m_objXlApp = New Excel.Application
m_objXlApp.Visible = False
'Now create sheets, fill in cells and format stuff
'This may take a few minutes as there is a lot to process...
m_objXlApp.Quit
Set m_objXlApp = Nothing
---------------------------------------------------------------
While the spreadsheet is being created I present
the user with a a simple form giving them
feedback on the progress. I make sure they are
unable to do anything else on my Access
application while this is going on.
It all works really well but there is one problem...
If they have Excel open or they try to open
Excel while the process is executing then it
all screws up. Is there some way that I can
stop this from happening? What am I missing..
Thanks,
Roy