Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Inhibit 'Save Changes'


A project I've nearly finished finally just about everything required
but when you close it Excel asks 'Do you want to save the changes you
made to....' irrespective of whether any changes have been made
or not.

Can I not show this message? Or, even better, only show it when
there have been changes?

Thanks - kirk

  #2   Report Post  
Posted to microsoft.public.excel.programming
Ray Ray is offline
external usenet poster
 
Posts: 267
Default Inhibit 'Save Changes'

You can suppress that message with:
Application.DisplayAlerts = False
right before the code to Close the workbook.

I'm sure there's a way to check for changes, but I have no idea how to
code for that ...

//ray


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Inhibit 'Save Changes'

On Mon, 06 Aug 2007 12:50:28 -0000, Ray wrote:

You can suppress that message with:
Application.DisplayAlerts = False
right before the code to Close the workbook.

I'm sure there's a way to check for changes, but I have no idea how to
code for that ...


Ray, I put that into

Private Sub Workbook_BeforeClose(Cancel As Boolean)

but it has no affect there and still brings up the prompt.

Was there where you meant it to go?

Thanks - Kirk
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
Inhibit use of the function "Connections" on Excel 2007 Andrea Proietti Neri Setting up and Configuration of Excel 0 January 7th 10 06:28 PM
VBA to Sendkeys or otherwise inhibit Update Values Window Dennis Excel Programming 1 December 4th 06 07:35 PM
inhibit input Pastel Hughes Excel Discussion (Misc queries) 1 April 24th 06 09:13 PM
text import inhibit required [email protected] Excel Programming 2 October 2nd 05 01:22 AM
Inhibit Cut (allow Copy) duncan Excel Programming 3 March 29th 05 09:00 AM


All times are GMT +1. The time now is 09:35 AM.

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"