special folders: references for Shell Controls
Const wsh_SPECIAL_FOLDER_DESKTOP = 10
Const wsh_SPECIAL_FOLDER_MY_DOCS As Long = 16
Dim oWSH As Object
Set oWSH = CreateObject("WScript.Shell")
MsgBox oWSH.SpecialFolders(wsh_SPECIAL_FOLDER_DESKTOP)
MsgBox oWSH.SpecialFolders(wsh_SPECIAL_FOLDER_MY_DOCS)
--
HTH
Bob Phillips
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Allen_N" wrote in message
...
I tried to implement the example in
'http://www.microsoft.com/technet/scriptcenter/guide/sas_fil_higv.mspx?mfr=t
rue
to get the 'My Documents' and 'Desktop' folders, but Excel doesn't like
the
'.Self' property of the 'Folder' object.
The references to add were given in
'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/pl
atform/shell/programmersguide/shell_basics/shell_basics_programming/objectma
p.asp' as:
Microsoft Internet Controls (SHDocVw)
Microsoft Shell Controls and Automation (Shell32)
but the 1st one isn't listed in the available references in my Excel 2003,
and adding the 2nd reference didn't fix my problem.
Does anyone know what these references should be for Windows XP?
|