Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Do you want to save

I was working on an excel 2003 spreadsheet, in Windows XP, and I had
to check an email for billing purposes. In the email there was a
another spreadsheet that I opened. I printed it and then closed it.

It asked me if I wanted to save the changes and I said no because that
also changes the date of the file and I wanted to leave it at the
original date.

Then I realized that I closed all the Excel files, including the one I
was working on and didn't ask to save the updates. I have a feeling I
know the answer to this but, is there anyway to get that spreadsheet
back. If not, how can I prevent that from happening again. In the
Excel save options, I do ask to retain a copy after 10 minutes but
once I say don't save the changes, isn't that gone too.

Is there no failsafe way to protect these spreadsheets form a
momentary loss of concentration? Is it any different in Excel 2007?

Alan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Do you want to save

In 2003 you can have the following:

I would put it in the "ThisWorkbook" Code Window.
Sub Auto_Close()
Thisworkbook.Save
End Sub
--
Pops Jackson


"Alan" wrote:

I was working on an excel 2003 spreadsheet, in Windows XP, and I had
to check an email for billing purposes. In the email there was a
another spreadsheet that I opened. I printed it and then closed it.

It asked me if I wanted to save the changes and I said no because that
also changes the date of the file and I wanted to leave it at the
original date.

Then I realized that I closed all the Excel files, including the one I
was working on and didn't ask to save the updates. I have a feeling I
know the answer to this but, is there anyway to get that spreadsheet
back. If not, how can I prevent that from happening again. In the
Excel save options, I do ask to retain a copy after 10 minutes but
once I say don't save the changes, isn't that gone too.

Is there no failsafe way to protect these spreadsheets form a
momentary loss of concentration? Is it any different in Excel 2007?

Alan

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Do you want to save

Uh OH

This looks like a language.

Pops,

I have programmed (on a very limited basis) before but this looks like
a language..probably Visual Basic which I never used and have no idea
how to get into. I supposed I should learn it but is there anything I
can do without VB?

Also, "ThisWorkbook" is a variable for whatever workbook is open? What
if there are two that are open? I assume this is a sub-routine
related to something in Excel called Auto_Close so that whenever you
close, the current workbook is updated. What if you are working from
another workbook for another client and you used theirs WB as a
pro-forma. You make the changes for the new client and an auto_close
will kill the old client's WB.

I'd be interested in a file or files being saved as
Auto_Close_ThisWorkbook_1, Auto_Close_ThisWorkbook_2 ...... so that
after you realize what you have done, you can go back and get the WB
you just assinated. Perehaps that is what your sub-routine does but
in case it doesn't, this would be a way to prevent disasters. The
only thing is, you would have to go in and delete all the unused saved
Auto_Close_ThisWorkbook_Ns.

Microsoft doesn't give you this ability anywhere in the options? It's
a shame Lotus isn't breathing down MS's neck anymoe so that the Office
programs could actually evolve.

On Fri, 20 Jul 2007 09:46:04 -0700, Pops Jackson
wrote:

In 2003 you can have the following:

I would put it in the "ThisWorkbook" Code Window.
Sub Auto_Close()
Thisworkbook.Save
End Sub

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Do you want to save

Please forgive my assuming too much.

This is very easy. Press Alt/F11 and the code window will open. On the
left you will see the names of any workbooks that are open at the time.

"ThisWorkbook" refers to the workbook in which the code is resident. If you
double-click the "ThisWorkbook" under the name of your workbook, you will see
the code window. Just copy and paste the three lines there and close the
code window.

When you close the workbook, it will save itself and you will not be asked
if you want to save.

Best wishes,

Jim
--

"Alan" wrote:

Uh OH

This looks like a language.

Pops,

I have programmed (on a very limited basis) before but this looks like
a language..probably Visual Basic which I never used and have no idea
how to get into. I supposed I should learn it but is there anything I
can do without VB?

Also, "ThisWorkbook" is a variable for whatever workbook is open? What
if there are two that are open? I assume this is a sub-routine
related to something in Excel called Auto_Close so that whenever you
close, the current workbook is updated. What if you are working from
another workbook for another client and you used theirs WB as a
pro-forma. You make the changes for the new client and an auto_close
will kill the old client's WB.

I'd be interested in a file or files being saved as
Auto_Close_ThisWorkbook_1, Auto_Close_ThisWorkbook_2 ...... so that
after you realize what you have done, you can go back and get the WB
you just assinated. Perehaps that is what your sub-routine does but
in case it doesn't, this would be a way to prevent disasters. The
only thing is, you would have to go in and delete all the unused saved
Auto_Close_ThisWorkbook_Ns.

Microsoft doesn't give you this ability anywhere in the options? It's
a shame Lotus isn't breathing down MS's neck anymoe so that the Office
programs could actually evolve.

On Fri, 20 Jul 2007 09:46:04 -0700, Pops Jackson
wrote:

In 2003 you can have the following:

I would put it in the "ThisWorkbook" Code Window.
Sub Auto_Close()
Thisworkbook.Save
End Sub


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Do you want to save

Is there no failsafe way to protect these spreadsheets form a momentary loss of concentration?

Discipline.

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
SAVE and SAVE AS options disappeared from the drop down FILE menu [email protected] Excel Discussion (Misc queries) 2 July 12th 07 09:14 AM
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() Paul Dennis Excel Discussion (Misc queries) 5 September 18th 06 05:34 PM
how to get disk icon on save button of save as dialog like 2000 RichT Excel Discussion (Misc queries) 2 March 9th 06 08:13 PM
when i save xls file, debug script is running and canno't save fil Imtiaz Excel Discussion (Misc queries) 1 July 16th 05 03:47 PM
Save Excel file - prompts to save - no Volitile functions used POWER CERTS Excel Worksheet Functions 2 November 1st 04 09:27 PM


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