steztric
05-30-2008, 05:36 AM
Hi guys. I have tried looking around and everywhere I see people are trying to do the opposite of me! :confused:
I have an Excel spreadsheet that has a lot of data in it. When I click a button I export the data as a .csv and run an external program called LRIC.exe. This program does calculations on the data which could take up to a day to complete. For this reason I would like to be able to close Excel in the meantime while the program runs.
The problem is that when I run the shell command, the process is created as a child to Excel, so that if I close Excel, the process terminates. Is there a way to start the process as a sister to Excel so that if I close Excel, it will keep running?
Here is a sample of my code. Assume I have already exported the data as a file called input.csv:
Dim Path As String
Dim Program As String
Path = ThisWorkbook.Path
Program = Path & "\lric.exe input.csv -csv"
Shell(Program, vbNormalFocus)
The program starts to run. When I close Excel, the process terminates undesirably. Any help would be greatly appreciated. :D
I have an Excel spreadsheet that has a lot of data in it. When I click a button I export the data as a .csv and run an external program called LRIC.exe. This program does calculations on the data which could take up to a day to complete. For this reason I would like to be able to close Excel in the meantime while the program runs.
The problem is that when I run the shell command, the process is created as a child to Excel, so that if I close Excel, the process terminates. Is there a way to start the process as a sister to Excel so that if I close Excel, it will keep running?
Here is a sample of my code. Assume I have already exported the data as a file called input.csv:
Dim Path As String
Dim Program As String
Path = ThisWorkbook.Path
Program = Path & "\lric.exe input.csv -csv"
Shell(Program, vbNormalFocus)
The program starts to run. When I close Excel, the process terminates undesirably. Any help would be greatly appreciated. :D