Check if Excel is running

J

James C.

I have a form that the user can input data and when they hit submit, it dumps
the information into excel. The problem that I am having is that sometimes
they have excel open which causes a pasting problem.

I want to be able to have the user hit submit and then the module will close
all running excel apps before it opens up the excel workbook that I specify
in the code.

Can this be done
 
B

BAC

I, for one, would be very upset if I were working an Excel project, switched
to your app, then had your app close my Excel file...especially if I hadn't
saved it...

A better approach would be to use the CreateObject, rather than GetObject
method (creating a new instance of Excel), open your workbook and
specifically activate the worksheet you wanted the data to post to before the
paste operation.

Bac
 

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