Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello, I want to be able to refer to a user's 'MyDocuments' folder -
whatever operating system/network/etc. they are using. Is there a way to refer to it that isn't dependant on their setup? Thanks M |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I use:
Dim myDocumentsPath As String myDocumentsPath = CreateObject("WScript.Shell") _ .SpecialFolders.Item("mydocuments") MsgBox myDocumentsPath Michelle wrote: Hello, I want to be able to refer to a user's 'MyDocuments' folder - whatever operating system/network/etc. they are using. Is there a way to refer to it that isn't dependant on their setup? Thanks M -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not bad! - that seems to do just what I want. Thank you
M "Dave Peterson" wrote in message ... I use: Dim myDocumentsPath As String myDocumentsPath = CreateObject("WScript.Shell") _ .SpecialFolders.Item("mydocuments") MsgBox myDocumentsPath Michelle wrote: Hello, I want to be able to refer to a user's 'MyDocuments' folder - whatever operating system/network/etc. they are using. Is there a way to refer to it that isn't dependant on their setup? Thanks M -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dave,
Thanks for the tip! I've used the environ("user") and put that in an explicit path but like your suggestion. On Mon, 30 Nov 2009 07:46:18 -0600, Dave Peterson wrote: I use: Dim myDocumentsPath As String myDocumentsPath = CreateObject("WScript.Shell") _ .SpecialFolders.Item("mydocuments") John Keith |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Filesearch .LookIn fixated on MyDocuments | Excel Programming | |||
Do File Open and default to the MyDocuments dialog box | Excel Programming | |||
Saving to "MyDocuments" on users computer | Excel Programming | |||
how can I display the file location (ie:C/mydocuments..)print | Excel Discussion (Misc queries) | |||
LINKING Address cells from an EXCEL spreadsheet to fill MapQuest Address Info | Excel Programming |