I’m using VBA in Excel and am trying to use the popular ShellAndWait subroutine. Within this sub is a call to OpenProcess, but that is giving me a compile error “Sub or Function not defined.” I’ve tried to research why this would come up and can’t find anything. Is there a specific Reference I need to set up in VBA to use this? I don’t have admin rights on this machine–could that be a problem? Thanks for any insight.
Share
Have you declared OpenProcess?