vba - OpenProcess gives "Sub or Function not defined" error -
i'm using vba in excel , trying use popular shellandwait subroutine. within sub call openprocess, giving me compile error "sub or function not defined." i've tried research why come , can't find anything. there specific reference need set in vba use this? don't have admin rights on machine--could problem? insight.
have declared openprocess?
declare function openprocess lib “kernel32” (byval dwdesiredacess long, byval binherithandle long, byval dwprocessid long) long
Comments
Post a Comment