Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default Save copies in different places

I have a workbook on a shared drive. I have a macro that tells it to
save a copy in a certain folder on my desktop. Is it possible to save
a copy in other locations (ie other peoples desktops) if I have their
directory?

If so, how do I add an additional directory....? (use commas after
each, or some special character to string them?)


Sub Macro3()


'
ChDir "C:\Documents and Settings\JWALD\Desktop\attendance rosters"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\JWALD\Desktop\attendance rosters
\Book200.xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Save copies in different places

Use a second Saveas statement with a dfferent filename.

"J.W. Aldridge" wrote:

I have a workbook on a shared drive. I have a macro that tells it to
save a copy in a certain folder on my desktop. Is it possible to save
a copy in other locations (ie other peoples desktops) if I have their
directory?

If so, how do I add an additional directory....? (use commas after
each, or some special character to string them?)


Sub Macro3()


'
ChDir "C:\Documents and Settings\JWALD\Desktop\attendance rosters"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\JWALD\Desktop\attendance rosters
\Book200.xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Save copies in different places

Or maybe .savecopyas

Then the activeworkbook won't change names or locations.



Joel wrote:

Use a second Saveas statement with a dfferent filename.

"J.W. Aldridge" wrote:

I have a workbook on a shared drive. I have a macro that tells it to
save a copy in a certain folder on my desktop. Is it possible to save
a copy in other locations (ie other peoples desktops) if I have their
directory?

If so, how do I add an additional directory....? (use commas after
each, or some special character to string them?)


Sub Macro3()


'
ChDir "C:\Documents and Settings\JWALD\Desktop\attendance rosters"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\JWALD\Desktop\attendance rosters
\Book200.xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub



--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default Save copies in different places

Thanx... Very helpful info.. (can use that in the future)

But my original question was that can I save it from a shared drive to
someone else's pc.

Example: Using the following code, JALD is the users name. If I know
the computer name, how could I get it to work?


Thanx



Sub Macro4()
'
' Macro4 Macro
' Macro recorded 9/28/2007 by FTN
'

'
ChDir "C:\Documents and Settings\JALD\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\JALD\Desktop\Book200.xls",
FileFormat:=xlNormal _
, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False, _
CreateBackup:=False
End Sub

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Save copies in different places

I'm not sure if it's possible.

Maybe if that other user shares the desktop???

I'd ask in a windows forum.

"J.W. Aldridge" wrote:

Thanx... Very helpful info.. (can use that in the future)

But my original question was that can I save it from a shared drive to
someone else's pc.

Example: Using the following code, JALD is the users name. If I know
the computer name, how could I get it to work?

Thanx

Sub Macro4()
'
' Macro4 Macro
' Macro recorded 9/28/2007 by FTN
'

'
ChDir "C:\Documents and Settings\JALD\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\JALD\Desktop\Book200.xls",
FileFormat:=xlNormal _
, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False, _
CreateBackup:=False
End Sub


--

Dave Peterson
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
Save copy on Open, keeping old backup copies txheart Excel Discussion (Misc queries) 5 January 4th 12 08:32 PM
Save several copies of the same worksheet ayeshasid Excel Worksheet Functions 6 March 22nd 07 03:53 PM
Save a workbook in 2 places Mike Fogleman Excel Programming 3 October 26th 05 04:02 PM
Q. Can I save 2 copies at the once? George[_22_] Excel Programming 1 August 6th 04 05:34 AM
Macro needed; save a file two (or more places) at the same time Sigurd Excel Programming 3 March 2nd 04 11:20 PM


All times are GMT +1. The time now is 11:42 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"