Forum Discussion
F_Stoelwinder
Aug 22, 2020Copper Contributor
Excel VBA SHELL function does not work anymore
Recently I switched from Windows 7 to Windows 10 and I use Excel 2016. With W7 the VBA 'SHELL' function worked fine, but now I get an error message (error code 5). I am using the same Excel workshee...
Thanisalbert
May 09, 2021Copper Contributor
Set shellwindows = GetObject("new:9ba05972-f6a8-11cf-a442-00a0c90a8f39")
Set itemobj = shellwindows.Item()
itemobj.document.Application.ShellExecute sTempBAT, "", "", "open", 0
Please check the below blog
https://blog.sevagas.com/IMG/pdf/bypass_windows_defender_attack_surface_reduction.pdf