Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ボタンが入ったExcelファイルがあります。ボタンをクリックすると、別の場所にある管理者モードでファイル「myfile.exe」を開くことができるはずです。
誰かがWindows07マシンでexcelVBAを使用してこれを実装する方法を教えてもらえますか...?
前もって感謝します....
はい、使用できますrunasが、パスワードが必要です。
runas
Shell "runas /profile /env /user:=<UserName>\admin ""c:\windows\Notepad.exe"""
スナップショット
RunAs のヘルプ: runas/?DOS プロンプトに入力して、構文を表示します。
runas/?