HOW DO YOU GET EXCEL TO ASK IF YOU WANT TO SAVE A FILE ON EXITING

D

David Lambright

If I make changes to a file, then click the X box, Excel closes with out
saving the changes. My old version would ask if I want to save changes.
 
A

Alan Cannon

I need the answer to this one also! I am using Office 2003 and it is doing
exactly that. Even a new workbook with entries made does not prompt to save.
 
D

damorrison

go to visual basics,project explorer-select this workbook and you will
be in a screen called [This Workbook(Code)];
click on the dropdown menu that say general and pick workbook
go to the dropdown window, and select open
enter this:between

Private Sub Workbook_Open()

Workbooks.Open Filename:="C:\BOH.xls"

End Sub

Easiest way to get the code for openning a file is to use the macro
recorder, then copy and paste it into the
Private Sub Workbook_Open()
'your code
End Sub
 
D

damorrison

Sorry about that, I was sure I read 'how to open a worksheet when
opening another' but now I am reading something else
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top