Always asks to save

A

augiem

I have a excel workbook that when opened will then not let you exit th
workbook until saved. This is causing problems because I am using
program called "4 Tops" to import data from that workbook into access
I have looked to see if any macros were causing problems and it doesn'
appear to be that. Also, have saved it several times using other method
but it always carries this "problem" with it. Any help would b
appetiated
 
R

RichardSchollar

Hi Augiem

Have you checked the ThisWorkbook module for code? Sounds like there
may be something in there firing on the Before_Close event.

Best regards

Richard
 
G

Graham Whitehead

Perhpas this is what you are looking for. It will prevent the nag box
popping up asking you if you want to save the changes when ever you exit the
sheet or excel.

Open the visual basic editor.

On the right you will see a list of sheets assocaited with the current
workbook. Underneath the list of sheets there should be some text
'ThisWorkbook'. double click on this and put this code in.

Private Sub Workbook_BeforeClose(Cancel As Boolean)

ActiveWorkbook.Close savechanges:=False

End Sub

Hope this is what you are looking for,
 
Top