A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Yes, I can do that too...
...just not using 'Shell' from within Excel VBA.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
After upgrading to Windows 10, I can no longer start Registry Editor fra VBA with:
Shell "RegEdit.EXE"
All my old macros, using that call, no longer works!
If I try to open Notepad with
Shell "NotePad.EXE"
...which is located in the same folder (C:\Windows) as RegEdit.EXE there's no problem.
What has changed from win7 to Win10 ???
How do I make all my macros work again?!?
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Yes, I can do that too...
...just not using 'Shell' from within Excel VBA.
I can run regedit.exe in Windows 10 perfectly well in a standard user profile without elevation. The elevation is needed only if I want to make changes in the HKEY_CLASSES_ROOT or HKEY_LOCAL_MACHINE hives.
Nope - I found the reason...
#¤%"#¤¤##" Microsoft strikes again, by changing things without warning and without any immediate way of settings things back!!!
God, I hate them more and more !!!
Using their position to force stuff on people!
Phew, felt good to get that rant of my shoulders...
Apparrently, in Windows 10, 'RegEdit.EXE' must be run in elevated mode ('Administrator mode') - once I found that out, everything works again...
As far as I know, nothing has changed. However, the Shell function has (and has always had) an optional second parameter named WindowStyle that defaults to the value vbMinimizedFocus. Both of your examples should start the named program minimized to the taskbar, and with the focus -- if you aren't looking for the icon there, you might think the command did nothing. To make the program visible, you would have to use the commands
Shell "RegEdit.EXE", vbNormalFocus
and
Shell "NotePad.EXE", vbNormalFocus