Can I set a macro to run each time a workbook is opened?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am importing data from a CSV file to an SPC database.
When the CSV file is closed, an Excel workbook opens and displays a button
that imports the inspection data and closes the workbook when selected.
Sometimes the employees forget to select the button so after another
inspection, another copy of the workbook tries to open.
 
Look in the ThisWorkbook module for the Workbook_Open event. Put in there.
 
I am new at this.
The code that opens the workbook is...

Shell "C:\Program files\Microsoft Office\Office\excel.exe
C:\MPP\Company\Product\Other_Files\Product.xls"

Is there a delimiter I should use with the last line?
 

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

Back
Top