Hi, I have an option group in Access where the first Select Case statement starts Excel and opens a specific file. The problem I'm having is depending on the version of Office, Excel can be in a different subdirectory.
I would like to include an If/Then statement that says if Excel doesn't exist in this folder, look for it in another folder, else error message. Or if there's a better way....
Existing:
Case 1
Call Shell("C:\Program Files\Microsoft Office\Office10\Excel.exe C:\Export\CableTransferSheet.xls", 1)
Would like to change to:
Case 1
If(Call Shell.....A)= not found,(Call Shell....B),"Error"
Any help would be appreciated.
Thanks
I would like to include an If/Then statement that says if Excel doesn't exist in this folder, look for it in another folder, else error message. Or if there's a better way....
Existing:
Case 1
Call Shell("C:\Program Files\Microsoft Office\Office10\Excel.exe C:\Export\CableTransferSheet.xls", 1)
Would like to change to:
Case 1
If(Call Shell.....A)= not found,(Call Shell....B),"Error"
Any help would be appreciated.
Thanks