Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default save file notification

How to skip the: "Do you you want to save changes you nade to....."
notification??
(files which are read only for all usesr)
thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default save file notification

Hi Dan:

Include this macro in the workbook coding area:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
ThisWorkbook.Saved = True
End Sub

--
Gary''s Student - gsnu200738


"Dan" wrote:

How to skip the: "Do you you want to save changes you nade to....."
notification??
(files which are read only for all usesr)
thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default save file notification

Thanks. it works!!!


"Gary''s Student" wrote:

Hi Dan:

Include this macro in the workbook coding area:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
ThisWorkbook.Saved = True
End Sub

--
Gary''s Student - gsnu200738


"Dan" wrote:

How to skip the: "Do you you want to save changes you nade to....."
notification??
(files which are read only for all usesr)
thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 373
Default save file notification

Well, this is dangerous because there will be no opportunity to save the
file under another name if it's read-only. But, assuming that's what you
want to do, remove the read-only property, open the file, right-click on the
Excel icon at the left of the toolbar and select View Code. Copy this code
and paste it in there. Save the file, close it and set it to read-only.
HTH, James

Private Sub Workbook_BeforeClose(Cancel As Boolean)
If ThisWorkbook.ReadOnly Then ThisWorkbook.Saved = True
End Sub

"Dan" wrote in message
...
How to skip the: "Do you you want to save changes you nade to....."
notification??
(files which are read only for all usesr)
thanks




  #5   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default save file notification

Thanks, it works!!

"Zone" wrote:

Well, this is dangerous because there will be no opportunity to save the
file under another name if it's read-only. But, assuming that's what you
want to do, remove the read-only property, open the file, right-click on the
Excel icon at the left of the toolbar and select View Code. Copy this code
and paste it in there. Save the file, close it and set it to read-only.
HTH, James

Private Sub Workbook_BeforeClose(Cancel As Boolean)
If ThisWorkbook.ReadOnly Then ThisWorkbook.Saved = True
End Sub

"Dan" wrote in message
...
How to skip the: "Do you you want to save changes you nade to....."
notification??
(files which are read only for all usesr)
thanks







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
can an automated notification (on xls file changes) email can be anat_ny Excel Discussion (Misc queries) 1 July 10th 07 07:16 PM
Is it possible to receive notification of a file update? spavlica09 Excel Discussion (Misc queries) 1 May 8th 06 04:50 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
Excel File in Use Notification Missing?? JoD317 Excel Discussion (Misc queries) 6 April 19th 05 02:33 PM
Excell2003 (SP-1) File > Save and File > Save As.. grayed out Joe Murphy Excel Discussion (Misc queries) 0 March 9th 05 10:00 PM


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