System variable

  • Thread starter Thread starter Vsn
  • Start date Start date
V

Vsn

Hi all,

Who can tell me where I can get the Windows "My documents" directory? Must
be somthing like stPath=office.system.path.....

Thx alot,
Ludovic
 
How about:
Dim WshShell As Object, strMyDocuments As String
Set WshShell = CreateObject("WScript.Shell")
strMyDocuments = WshShell.SpecialFolders("AllUsersDesktop")
Set WshShell = Nothing
 
I'm guessing you mean the code to achieve this is much more complicated than
you expected as all you have to do is paste the code provided into a module
and then use.
stPath = fGetSpecialFolderLocation(CSIDL_PERSONAL)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

command button color 2
Print Powerpoint pres 1
Checking multiple locations for folder using IF statement 7
My documents 2
creating tables with VBA 10
Write to table 7
form event? 1
columns in text box 2

Back
Top