JoshLindenmuth
IS-IT--Management
I feel like I'm losing my mind here. I have a simple subroutine in Excel 2003, and on some computers it works, on others it doesn't:
Code Snippet
Sub test()
retval = Shell("c:\windows\notepad.exe", vbMaximizedFocus)
MsgBox retval
End Sub
In particular, ALL the computers at work do nothing (retval = 0 with no program launched), while my home computers return the process ID and launch notepad, as expected. I've verified that all the computers have notepad.exe in the c:\windows\ folder and both sets of computers experience the same behavior for other programs.
Thanks in advance,
Josh
Code Snippet
Sub test()
retval = Shell("c:\windows\notepad.exe", vbMaximizedFocus)
MsgBox retval
End Sub
In particular, ALL the computers at work do nothing (retval = 0 with no program launched), while my home computers return the process ID and launch notepad, as expected. I've verified that all the computers have notepad.exe in the c:\windows\ folder and both sets of computers experience the same behavior for other programs.
Thanks in advance,
Josh