Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Automatically saving to someone's 'My Documents' directory

Is there a default that saves a file to someone's 'my documents' directory as
two people in the same dept will have different directory paths.

Many thanks

James
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Automatically saving to someone's 'My Documents' directory

Try this

MyPath = CreateObject("WScript.Shell").Specialfolders("MyDo cuments")

Mike

"James Price at Premier" wrote:

Is there a default that saves a file to someone's 'my documents' directory as
two people in the same dept will have different directory paths.

Many thanks

James

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Automatically saving to someone's 'My Documents' directory

That's great. Thanks Mike

James

"Mike H" wrote:

Try this

MyPath = CreateObject("WScript.Shell").Specialfolders("MyDo cuments")

Mike

"James Price at Premier" wrote:

Is there a default that saves a file to someone's 'my documents' directory as
two people in the same dept will have different directory paths.

Many thanks

James

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Automatically saving to someone's 'My Documents' directory

Your welcome and thanks for the feedback

"James Price at Premier" wrote:

That's great. Thanks Mike

James

"Mike H" wrote:

Try this

MyPath = CreateObject("WScript.Shell").Specialfolders("MyDo cuments")

Mike

"James Price at Premier" wrote:

Is there a default that saves a file to someone's 'my documents' directory as
two people in the same dept will have different directory paths.

Many thanks

James

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change File Open default directory from My Documents Ben Setting up and Configuration of Excel 3 January 1st 21 12:42 PM
Saving Excel File in Current Directory NOT My Documents Fredriksson via OfficeKB.com Excel Programming 1 November 6th 06 09:08 PM
Saving Excel File in Current Directory NOT My Documents Fredriksson via OfficeKB.com Excel Programming 0 November 6th 06 07:47 PM
Saving into new directory Greg B Excel Discussion (Misc queries) 2 March 2nd 05 03:58 PM
Saving to same directory Michael Beckinsale Excel Programming 1 December 12th 03 07:31 PM


All times are GMT +1. The time now is 12:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"