PDA

View Full Version : Remove the prompt to save



Tezzies
12-13-2007, 06:50 AM
To exit word I have a specific button.When this button is pressed it checks to see if the doc is read only then exits. Unfortunetly though word always prompts you to save changes. How do I skip this prompt and exit??

So far I have--


if Me.ReadOnly Then
Word.ActiveDocument.Close True <---falls down here
Application.Quit
end if


Many thanks

TonyJollans
12-13-2007, 09:16 AM
ActiveDocument.Close False