Prompt for elevation from VBA? RRS feed

  • Question

  • I'm writing a Word 2010 VBA app that will shell ROBOCOPY to copy some folders with their ACLs, and will then use iCACLS to modify the destination folder ACLs on WS2008 R2. Both of these require elevation.

    I know I can launch Word elevated and it will work, and that's my fallback. But is there a way to launch Word as a non-elevated user and have UAC prompt me for elevation when it's needed?


    Friday, December 2, 2011 5:47 AM