R_J_Potter@msn.com
Registered User.
- Local time
- Today, 13:16
- Joined
- Nov 4, 2011
- Messages
- 29
I’ve been using the following Macro “RunApp” coding in MS Access 2007 to open an Excel Worksheet.
Windows Vista
Action: RunApp
C:\Program Files\Microsoft Office\Office12\Excel.exe "C:\Users\Ron\Documents\MS\MS Excel97\Verizon .xlsm"
This Macro does what I want, But now I purchased a new Dell XPS laptop with Window 7 Professional (64 bit).
To get the Macro’s to work on the new laptop, I had to change the code that opens Excel from a different location C:\Program Files (x86). See below:
Windows 7 (64 BIT)
Action: RunApp
C:\Program Files (x86)\Microsoft Office\Office12\Excel.exe "C:\Users\Ron\Documents\MS\MS Excel97\Verizon .xlsm"
How can I add both Actions in the same Macro using a Condition Statement. i.e.
If file not found, goto next Action or Exit Macro
Open for suggestions to do it differently...
:banghead:
Windows Vista
Action: RunApp
C:\Program Files\Microsoft Office\Office12\Excel.exe "C:\Users\Ron\Documents\MS\MS Excel97\Verizon .xlsm"
This Macro does what I want, But now I purchased a new Dell XPS laptop with Window 7 Professional (64 bit).
To get the Macro’s to work on the new laptop, I had to change the code that opens Excel from a different location C:\Program Files (x86). See below:
Windows 7 (64 BIT)
Action: RunApp
C:\Program Files (x86)\Microsoft Office\Office12\Excel.exe "C:\Users\Ron\Documents\MS\MS Excel97\Verizon .xlsm"
How can I add both Actions in the same Macro using a Condition Statement. i.e.
If file not found, goto next Action or Exit Macro
Open for suggestions to do it differently...
:banghead: