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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -