Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
y_not
 
Posts: n/a
Default Automate save and close


I need my workbook to save the changes and rename the file (to the name
in cell A1) when I close the workbook ... is it possible to automate
this?

I use the workbook for invoice generation, cell A1 is the unique number
and I have a clerk who keeps overwriting the previous file by simply
answering "Yes" to the prompt "Do you want to save the changes" without
renaming the file.

Many thanks for your help

Tony


--
y_not
------------------------------------------------------------------------
y_not's Profile: http://www.excelforum.com/member.php...o&userid=19947
View this thread: http://www.excelforum.com/showthread...hreadid=523844

  #2   Report Post  
Posted to microsoft.public.excel.misc
dalipsinghbisht
 
Posts: n/a
Default Automate save and close


You should make a master file for your data and always use Save As no
Save. Or you can Save the data to press the key F12 and give a new name
to that file. Hope this will help you.

Dalip


--
dalipsinghbisht
------------------------------------------------------------------------
dalipsinghbisht's Profile: http://www.excelforum.com/member.php...o&userid=32557
View this thread: http://www.excelforum.com/showthread...hreadid=523844

  #3   Report Post  
Posted to microsoft.public.excel.misc
protonLeah
 
Posts: n/a
Default Automate save and close


One possibility is to use an auto start macro such as:

Option Explicit
Private Sub workbook_open()
Dim fname As String

fname = Sheets("sheet1").Range("a1").Value

ActiveWorkbook.SaveAs _
Filename:=fname, _
FileFormat:=xlWorkbook, _
Password:="", _
WriteResPassword:="", _
ReadOnlyRecommended:=False, _
CreateBackup:=False
End Sub

This will save the file with the whatever name is in cell A1 every time
it is opened.

Ben


--
protonLeah
------------------------------------------------------------------------
protonLeah's Profile: http://www.excelforum.com/member.php...o&userid=32097
View this thread: http://www.excelforum.com/showthread...hreadid=523844

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
Auto Open, Refresh, Save, Close Jimmycooker Excel Discussion (Misc queries) 0 February 6th 06 01:34 PM
Pop-up windows upon save &/or close C_F via OfficeKB.com Links and Linking in Excel 1 January 15th 06 07:08 PM
Close excel do not save Steved Excel Worksheet Functions 2 September 9th 05 02:54 AM
File close excel does not ask me to save changes Cathy Humphreys Excel Discussion (Misc queries) 2 June 13th 05 08:48 PM
Save Changes Prompt at close Johnewally Excel Discussion (Misc queries) 2 March 17th 05 09:15 PM


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