Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default savecopyas question

Hi folks,
Does the SaveCopyAs command in a macro HAVE TO create a temporary file
?
I feel like it is just slowing down the already lengthy process of
saving and copying my file twice. First is just saves itself and then
it copies it to a backup drive. The latter of the two operations
seems to take a long time on this 3500k file.


This is the current macro:

Sub Backup()
Fname = ActiveWorkbook.Name
ActiveWorkbook.Save
ActiveWorkbook.SaveCopyAs "J:\Trading\" & Fname
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default savecopyas question

Here is one I use that does the same thing. You may find it useful since it
will make a backup folder for the active folder, IF desired. I can't answer
the basic question.

Sub Backup() 'kept in personal.xls & assigned to toolbar button
On Error GoTo BackupFile
MkDir CurDir & "\Backup"
BackupFile:
With ActiveWorkbook
MyWB = .Path & "\BACKUP\" & .Name
.SaveCopyAs MyWB
.Save
End With
End Sub

--
Don Guillett
SalesAid Software

"scott23" wrote in message
om...
Hi folks,
Does the SaveCopyAs command in a macro HAVE TO create a temporary file
?
I feel like it is just slowing down the already lengthy process of
saving and copying my file twice. First is just saves itself and then
it copies it to a backup drive. The latter of the two operations
seems to take a long time on this 3500k file.


This is the current macro:

Sub Backup()
Fname = ActiveWorkbook.Name
ActiveWorkbook.Save
ActiveWorkbook.SaveCopyAs "J:\Trading\" & Fname
End Sub



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
saveCopyAs judith Excel Programming 1 September 29th 04 11:21 AM
SaveCopyAs Greg Hadrych Excel Programming 4 July 28th 04 07:49 PM
SaveCopyAs does not work Hank[_4_] Excel Programming 3 April 2nd 04 07:24 AM
SaveCopyAs method Lee Excel Programming 4 February 16th 04 04:41 PM
SaveCopyAs Mark Worthington Excel Programming 4 February 8th 04 06:00 AM


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

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

About Us

"It's about Microsoft Excel"