Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default rename current file save and delete original


Hey guys
I have this problem and I cant figure it out. I made a macro to save
the worksheet under a name that comes from cell N1. When the user is
done with form they hit my macro and it saves it in LAN and everything
is good. ( here is the problem ) Then another user goes in the Lan
finds the file and approves the form that adds two letters to the Cell
N1 (AP for approved ) that means it changes the file name and saves it
as a new file.
I need help how to keep that name with the same file even if it
changes. Here is the macro
any help appreciated - Thanks

Private Sub CommandButton1_Click()
thisfile = Range("n1").Value
activeworkbook.SaveAs Filename:="E:\CFA Checklist\" & thisfile &
".xls"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
MsgBox "File has been saved and Printed Location E:\CFA Checklist"
activeworkbook.Close
End Sub


--
valve79
------------------------------------------------------------------------
valve79's Profile: http://www.excelforum.com/member.php...o&userid=30431
View this thread: http://www.excelforum.com/showthread...hreadid=501232

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
How to set SAVE AS file name to equal A1 contents when rename file E Excel Discussion (Misc queries) 0 October 19th 05 08:36 PM
auto save excel file every 10 minutes to its original file name MEG Excel Discussion (Misc queries) 3 September 8th 05 07:12 PM
Auto save replaced my original file and now I need the original? Hols Excel Discussion (Misc queries) 1 August 15th 05 10:34 PM
Rename file based on current date wira Excel Programming 1 April 29th 05 10:37 AM
VBA to Save a file to a different format but keep original groutch Excel Programming 4 December 2nd 04 10:48 PM


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