ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Save copies in different places (https://www.excelbanter.com/excel-programming/398328-save-copies-different-places.html)

J.W. Aldridge

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


joel

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



Dave Peterson

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

J.W. Aldridge

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


Dave Peterson

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


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com