If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Invalid Procedure or Call

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

Originally Posted by AutomationBoy

I was looking for an answer to the same problem. When I searched for an answer the only hits I found were to the questions, but no answers. So after I researched what a .msc file was and realized what it took to launch it, I answered one of them for future reference.

Re: Invalid Procedure or Call

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