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 of worksheet with unique names

I have a computer running 24/7 and multiple people are writing items to
a list (worksheet).

It is important that it is saved several times a day, let's say at
10am, 12am and 14am.. And preferably to a specific location and with
uniqe filenames.

I have come up with this so far:

ThisWorkbook.SaveAs Filename:=Format(Now, "yymmdd_h*hmmss") & ".xls"

Can anybody help me out?

Best regards, Øystein

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Automatic saving of worksheet with unique names

Hi Øystein

Maybe SaveCopyAs is a better option for you
Your original workbook stay open and you save a copy in a
different folder

ThisWorkbook.SaveCopyAs Filename:="C:\Data\" & Format(Now, "yymmdd_h*hmmss") & ".xls"

You can run the code automatic every two hours if you want
Look here
http://www.cpearson.com/excel/ontime.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


wrote in message oups.com...
I have a computer running 24/7 and multiple people are writing items to
a list (worksheet).

It is important that it is saved several times a day, let's say at
10am, 12am and 14am.. And preferably to a specific location and with
uniqe filenames.

I have come up with this so far:

ThisWorkbook.SaveAs Filename:=Format(Now, "yymmdd_h*hmmss") & ".xls"

Can anybody help me out?

Best regards, Øystein


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 filter for unique records jc132568 Excel Worksheet Functions 11 October 23rd 09 06:41 AM
Using automatic Unique Validation list Montu Excel Worksheet Functions 1 October 4th 08 02:16 PM
Finding unique names--then converting those names to unique number Proton Excel Discussion (Misc queries) 7 June 13th 07 10:22 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 10:11 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"