Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am able to locate a users desktop with the following code:
Set WSHShell = CreateObject("WScript.Shell") sPath = WSHShell.specialfolders("Desktop") I need something similar to locate the Program Files, which are not always located at C:\Program Files I tried: Set WSHShell = CreateObject("WScript.Shell") sPath = WSHShell.SpecialFolders("Program Files") both with and without the space, but it only turned up an empty string. sPath = WSHShell.SpecialFolders("Programs") returns : \Start Menu\Programs Any clues? Also, where can I find the object model for this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
XLS Files Default Program | Excel Discussion (Misc queries) | |||
Cannot open excel files unless from the program itself | Setting up and Configuration of Excel | |||
What program should i use for archived files? | Excel Discussion (Misc queries) | |||
XP Excel program changes all my files to not duplex as stored | Setting up and Configuration of Excel | |||
Program Files Folder | Excel Programming |