Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Save into different "user's" folder

Try an Outlook newsgroup, not an Excel one. There is an Outlook.general, and
an Outlook.program_vba.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"JohnUK" wrote in message
...
Hi All,
Can someone help me with this? I am looking for a way to automate a file
to
save into different USER's Signatures file (For Outlook)
I know that if it was in Documents I could have used the
'Application.DefaultFilePath', but because the Signatures Folder is the
'C:\Documents and Settings\USER\Application Data\Microsoft\Signatures'
path,
I am stuck (USER being the problem)
Any help greatly appreciated
Regards
John



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default Save into different "user's" folder

Thank you Bob for answering.
I also need to auto save an excel workbook into a different directory (USER)
still being the problem. I used the Signatures Folder because Of another
project similer to the excel (Sorry, I shouldnt have used the Outlook word)
Can you help me?
John

"Bob Phillips" wrote:

Try an Outlook newsgroup, not an Excel one. There is an Outlook.general, and
an Outlook.program_vba.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"JohnUK" wrote in message
...
Hi All,
Can someone help me with this? I am looking for a way to automate a file
to
save into different USER's Signatures file (For Outlook)
I know that if it was in Documents I could have used the
'Application.DefaultFilePath', but because the Signatures Folder is the
'C:\Documents and Settings\USER\Application Data\Microsoft\Signatures'
path,
I am stuck (USER being the problem)
Any help greatly appreciated
Regards
John




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Save into different "user's" folder

Saving an Excel workbook to another directory is straightforward

Activeworkbook.SaveAs Filename:= "C:\newdir\myfile.xls"

To auto-save it, you would use the BeforeClose event, but where would it get
the name to save under from?

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"JohnUK" wrote in message
...
Thank you Bob for answering.
I also need to auto save an excel workbook into a different directory
(USER)
still being the problem. I used the Signatures Folder because Of another
project similer to the excel (Sorry, I shouldnt have used the Outlook
word)
Can you help me?
John

"Bob Phillips" wrote:

Try an Outlook newsgroup, not an Excel one. There is an Outlook.general,
and
an Outlook.program_vba.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"JohnUK" wrote in message
...
Hi All,
Can someone help me with this? I am looking for a way to automate a
file
to
save into different USER's Signatures file (For Outlook)
I know that if it was in Documents I could have used the
'Application.DefaultFilePath', but because the Signatures Folder is the
'C:\Documents and Settings\USER\Application Data\Microsoft\Signatures'
path,
I am stuck (USER being the problem)
Any help greatly appreciated
Regards
John






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Save into different "user's" folder

John,

Try this

Dim sPath As String

sPath = Replace(Application.StartupPath, "XLSTART", "")
ActiveWorkbook.SaveAs Filename:=sPath & "TestWorkbook.xls"


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"JohnUK" wrote in message
...
Bob,
I still have the problem with not having the user:
ActiveWorkbook.SaveAs Filename:="C:\Documents and Settings\Application
Data\Microsoft\Stationery\TestWorkbook.xls"
Because of not having a username the macro can't find its way.
The only other way I can think of is collecting everyone's username that
has
been programmed onto their PC's (All 20 of them) and writing out the code
20
times. This seems just too painful just to get the file into the right
Folder.
My boss doesn't half give me some complicated challenges.



"Bob Phillips" wrote:

Saving an Excel workbook to another directory is straightforward

Activeworkbook.SaveAs Filename:= "C:\newdir\myfile.xls"

To auto-save it, you would use the BeforeClose event, but where would it
get
the name to save under from?

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"JohnUK" wrote in message
...
Thank you Bob for answering.
I also need to auto save an excel workbook into a different directory
(USER)
still being the problem. I used the Signatures Folder because Of
another
project similer to the excel (Sorry, I shouldnt have used the Outlook
word)
Can you help me?
John

"Bob Phillips" wrote:

Try an Outlook newsgroup, not an Excel one. There is an
Outlook.general,
and
an Outlook.program_vba.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"JohnUK" wrote in message
...
Hi All,
Can someone help me with this? I am looking for a way to automate a
file
to
save into different USER's Signatures file (For Outlook)
I know that if it was in Documents I could have used the
'Application.DefaultFilePath', but because the Signatures Folder is
the
'C:\Documents and Settings\USER\Application
Data\Microsoft\Signatures'
path,
I am stuck (USER being the problem)
Any help greatly appreciated
Regards
John









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
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION yossie6 Excel Discussion (Misc queries) 1 June 16th 08 12:16 PM
Can I change Excel 2003 default "save to" folder? Gene New Mexico Setting up and Configuration of Excel 1 May 9th 07 11:26 PM
"Save" and "Save As" options greyed out - "Save as Webpage" option Bill Excel Discussion (Misc queries) 0 January 16th 07 04:47 PM
"Save as" will not work when trying to save a document in a folder Ernest Excel Discussion (Misc queries) 1 April 13th 06 06:48 AM
Backup to specific folder if workbook names begins with "NSR" or "MAC" GregR Excel Programming 3 May 6th 05 12:24 AM


All times are GMT +1. The time now is 04:44 AM.

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"