LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Macro to automaticaly save a book under an specific name

Maybe you could provide another macro:

With ThisWorkbook
.SaveAs Filename:=.Worksheets("sheet1").Range("a1").Value & ".xls", _
FileFormat:=xlNormal
End With

(with a bunch of testing to see if things were filled in correctly)

And you could add the path you want, too:

With ThisWorkbook
.SaveAs Filename:=.path & "\" & _
.Worksheets("sheet1").Range("a1").Value & ".xls", _
FileFormat:=xlNormal
End With

Marissa wrote:

Ok, this is the problem.

I have a book in excel for sales. The work is almost
done, all the macros work wonders, the process of sales
from the moment of getting orders until the moment the
product has been delivered works fine.

The thing is that what I need is that when I close this
book I want it to be saved automaticaly under a specific
name (that would be the No of Order from the client, that
appears in one of the pages of the document, in a
predeterminated cell all the time).

Is ther ea way to make this happen through a macro or
something? And when I save the book that it saves itself
always on a specific file in the computer?

Any clues?

Marissa


--

Dave Peterson

 
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
Macro to Save File to specific location when closing paankadu Excel Discussion (Misc queries) 3 October 26th 09 11:52 PM
can excel automaticaly open file from specific folder sand Excel Discussion (Misc queries) 1 July 7th 07 03:56 PM
Can you make excell automaticaly save to the current date & time? Jim Excel Discussion (Misc queries) 3 May 17th 07 04:49 PM
Can you automaticaly save a shared file every few mintues? Ben Excel Discussion (Misc queries) 0 February 7th 07 03:23 PM
macro to save file automaticaly? david Excel Discussion (Misc queries) 1 May 6th 05 05:21 PM


All times are GMT +1. The time now is 06:53 PM.

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"