I have just changed computer and Im now getting this error "Run of Object IwshShell3 failed". Im running the macro from MS Access.
the code is:
Set wsh = VBA.CreateObject("WScript.Shell")
wsh.Run strFileName 'execute file
Old computer Access version is office 2013. current version Microsoft Office 365 ProPlus. Ive tried referencing Windows Script Host Object Model. Are there any other references that I need?
shell()can execute a program, if thats all you need simply get rid of that code. - Alex K.