The code below used to work when my company was on Windows XP, MS Office 2003, and an earlier version of Attachmate. Now we are using Windows 7, MS Office 2010, and Attachmate 9.2. The problem I am having is with the last line sending keys to open the file I want. The error message displays: "Illegal function call . . " Any and all assitance is greatly appreciated!
Dim Hwnd as Integer
hWndExcel = Shell("C:\Program Files (x86)\Microsoft Office\Office14\Excel.exe", 1)
AppActivate "Microsoft Excel - Book1"
SendKeys "%FOH:\System Security\SSS\Quarterly Reports\MACROS\QTRLYDDA.xlsm",1
Thank you!
gcrane
Dim Hwnd as Integer
hWndExcel = Shell("C:\Program Files (x86)\Microsoft Office\Office14\Excel.exe", 1)
AppActivate "Microsoft Excel - Book1"
SendKeys "%FOH:\System Security\SSS\Quarterly Reports\MACROS\QTRLYDDA.xlsm",1
Thank you!
gcrane