Can someone please explain to my why the following code opens the windows under the current focused window? I want them to open up focused.
Code:Dim objShell
Set objShell = CreateObject("Shell.Application")
objShell.FindFiles '(or FileRun)
Printable View
Can someone please explain to my why the following code opens the windows under the current focused window? I want them to open up focused.
Code:Dim objShell
Set objShell = CreateObject("Shell.Application")
objShell.FindFiles '(or FileRun)
Unless I misunderstand, ShellExecute would be a better choice.
Then the question is how would I use ShellExecute to bring up the Windows Run dialog box or the Windows Find dialog box?
A search turned up this thread:
http://www.codeguru.com/forum/showthread.php?t=23182
Here is another that may be of interest to you:
http://www.codeguru.com/forum/showthread.php?t=24261
I'm sure there are others as well, which will turn up using various keywords.