Hi,
I have written some code that takes a template spreadsheet, populates it with required data and then automatically emails it to the Supplier.
The problem I have is that if the user has another excel spreadsheet open it always uses this as the template and not the file.
What I would like to know is how do I check that an Excel Application is already running so I can inform the user and exit the sub.
I am using the following to open the template if this is any help to you.
[red]
Set wsXL = appXL.Workbooks.Open(strTemplate)
[/red]
You help will be greatly appreciated
Keep Right On…
HM-B
I have written some code that takes a template spreadsheet, populates it with required data and then automatically emails it to the Supplier.
The problem I have is that if the user has another excel spreadsheet open it always uses this as the template and not the file.
What I would like to know is how do I check that an Excel Application is already running so I can inform the user and exit the sub.
I am using the following to open the template if this is any help to you.
[red]
Set wsXL = appXL.Workbooks.Open(strTemplate)
[/red]
You help will be greatly appreciated
Keep Right On…
HM-B