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

Hi,

I am trying to make a "save as" application that does not require th
user to confirm the save. This means the script generates th
directory- and filename and automatically saves the workbook there.

Is this possible?

Yours truly,

Berend Botj

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Automatic saving

Berend

Possible, yes.

Sounds easy when you say it quickly, but you have a few variables in
there.......

When would you like to trigger the "save as"?

From what variables would the folder and filename be generated?

Here is some code that can be used to save the file and a backup copy using
the original name when you close the file.

Maybe adapt to suit or post back with more info.

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.DisplayAlerts = False
ActiveWorkbook.SaveCopyAs Filename:="E:\GordStuff\Backup\" & _
ActiveWorkbook.Name
ActiveWorkbook.Save
Application.DisplayAlerts = True
End Sub

Gord Dibben Excel MVP

On Fri, 2 Jul 2004 08:42:57 -0500, Berend Botje
wrote:

Hi,

I am trying to make a "save as" application that does not require the
user to confirm the save. This means the script generates the
directory- and filename and automatically saves the workbook there.

Is this possible?

Yours truly,

Berend Botje


---
Message posted from http://www.ExcelForum.com/


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
AUTOMATIC FILE SAVING pravin New Users to Excel 6 July 9th 09 06:53 AM
automatic file saving in Excel DSinger Excel Discussion (Misc queries) 1 February 13th 06 08:38 PM
Automatic File Saving smoran Excel Discussion (Misc queries) 1 October 4th 05 07:37 PM
Automatic saving please help me Excel Discussion (Misc queries) 2 February 1st 05 01:11 PM
Automatic Saving Alan Excel Programming 3 June 2nd 04 06:04 PM


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