Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default save workbook on time


ThisWorkbook.save

I have above code to save workbook every half an hour, which works fine..
But even when I open this file and close it, still every half an hour it
opens on its own and saves.

How to overcome this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default save workbook on time


Tell excel to stop the timed macro when the workbook closes.

Take a look at Chip Pearson's notes:
http://www.cpearson.com/excel/OnTime.aspx

You'll see how he uses a variable to hold the next start time and how he uses
that to stop the timer.

Kash wrote:

ThisWorkbook.save

I have above code to save workbook every half an hour, which works fine..
But even when I open this file and close it, still every half an hour it
opens on its own and saves.

How to overcome this?


--

Dave Peterson
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
Last Save Time for non active shared workbook anon Excel Programming 1 October 4th 07 03:22 PM
Time to save a workbook serge Excel Programming 2 February 10th 06 12:36 PM
Save Workbook as Current Date/Time Jacob_F_Roecker Excel Discussion (Misc queries) 1 October 25th 05 09:37 AM
adding before save so it works every time excel opens and with any workbook Job[_2_] Excel Programming 3 January 12th 05 10:13 PM
auto save on exit while at the same time rename workbook... Brian Excel Programming 2 October 5th 04 01:33 AM


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

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"