E
Ed
I'm attempting to use Wscript.Shell through Word 2002 VBA to access a
shortcut's TargetPath. Actually, right now I'm just attempting to set an
object to Wscript.Shell!! I have a reference to the Windows Script Host
Object Model library (wshom.ocx). I'm using the following code just to try
and get a handle on using this, but it keep throwing "Error 424 - object
required" on the Set line. Can anyone give me a boost? Or an alternate
method?
Ed
Sub GetDesktop()
Dim WshShell
Set WshShell = Wscript.CreateObject("Wscript.Shell")
MsgBox "Your desktop is " & WshShell.SpecialFolders("Desktop")
End Sub
shortcut's TargetPath. Actually, right now I'm just attempting to set an
object to Wscript.Shell!! I have a reference to the Windows Script Host
Object Model library (wshom.ocx). I'm using the following code just to try
and get a handle on using this, but it keep throwing "Error 424 - object
required" on the Set line. Can anyone give me a boost? Or an alternate
method?
Ed
Sub GetDesktop()
Dim WshShell
Set WshShell = Wscript.CreateObject("Wscript.Shell")
MsgBox "Your desktop is " & WshShell.SpecialFolders("Desktop")
End Sub