Hey NEwbie here,
I am trying to add a button to excel to open device manager and tried this however I get a "invalid call or procedure" error. Please advise. thanks
Printable View
while Device Manager is running, check PROCESS LIST for the name, and then search for the file location. You can look up how to shell that call from Excel
It looks correct, mmc.exe is running and devmgmt.msc is in the system32 folder
[ Moved To Separate Thread ]
try
with the full pathCode:Shell "devmgmt.msc"
I tried the following, but still the same error:
Code:
Sub Open_Device_Mgr()
Dim RetValue As Long
Shell "C:\WINDOWS\system32\devmgmt.msc"
'RetValue = Shell("C:\WINDOWS\system32\mmc.exe C:\WINDOWS\system32\devmgmt.msc")
End Sub
try it with CMD.exe first. Might need the flag to keep it open
yep, thats the one. thanks for your help