-
October 20th, 2013, 08:39 PM
#1
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.
-
October 20th, 2013, 10:03 PM
#2
Re: [VB] Open the Device Manager
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
-
October 20th, 2013, 10:10 PM
#3
Re: [VB] Open the Device Manager
It looks correct, mmc.exe is running and devmgmt.msc is in the system32 folder
-
October 21st, 2013, 08:51 AM
#4
Re: Invalid Procedure or Call
[ Moved To Separate Thread ]
-
October 21st, 2013, 01:53 PM
#5
Re: Invalid Procedure or Call
try
Code:
Shell "devmgmt.msc"
with the full path
-
October 21st, 2013, 05:34 PM
#6
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
-
October 21st, 2013, 10:20 PM
#7
Re: Invalid Procedure or Call
try it with CMD.exe first. Might need the flag to keep it open
-
October 21st, 2013, 10:24 PM
#8
Re: Invalid Procedure or Call
yep, thats the one. thanks for your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|