Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Closing a spreadsheet?! Please HELP!


Please can someone help me

I have a spreadsheet, which acts as a template for a report – on
clicking of a button it populates this report through a csv file, then
applies a autofilter to the fields. At this point the user can save the
report, but what I am looking for is on closing of this template, I do
not want the user to be able to save the template - as it has been
populated and wont be blank.

So the question if : *What would the code be for “On close/quit of the
template do NOT save any changes to this template” *
Is there a macro that can auto execute if the user goes to file exit
or closes the application – that then wont save any changes made to the
template?

Thank you in advance for looking at this!

x


--
Preet
------------------------------------------------------------------------
Preet's Profile: http://www.excelforum.com/member.php...fo&userid=3155
View this thread: http://www.excelforum.com/showthread...hreadid=395257

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Closing a spreadsheet?! Please HELP!

Preet,
If it is a "real" Excel template, with a .xlt extension, then everytime you
(normally) open it, you actually open a copy.
The original remains unchanged.
Hence no need to check the saving, for this reason anyway.
Check out FileSave As as select Template under "Save As Type".

NickHK

"Preet" wrote in
message ...

Please can someone help me

I have a spreadsheet, which acts as a template for a report - on
clicking of a button it populates this report through a csv file, then
applies a autofilter to the fields. At this point the user can save the
report, but what I am looking for is on closing of this template, I do
not want the user to be able to save the template - as it has been
populated and wont be blank.

So the question if : *What would the code be for "On close/quit of the
template do NOT save any changes to this template" *
Is there a macro that can auto execute if the user goes to file exit
or closes the application - that then wont save any changes made to the
template?

Thank you in advance for looking at this!

x


--
Preet
------------------------------------------------------------------------
Preet's Profile:

http://www.excelforum.com/member.php...fo&userid=3155
View this thread: http://www.excelforum.com/showthread...hreadid=395257



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
Faster closing of large spreadsheet Steve Excel Discussion (Misc queries) 5 November 27th 08 02:22 AM
VB to clear any filters when closing a spreadsheet Kevin Excel Discussion (Misc queries) 8 December 20th 07 06:05 PM
Closing Excel spreadsheet Project 13 Excel Discussion (Misc queries) 0 September 19th 07 04:58 PM
closing a spreadsheet Cyberwolf Excel Programming 1 July 27th 05 04:57 PM
Dialog box when closing an unsaved spreadsheet Kathy4080 Excel Discussion (Misc queries) 1 January 4th 05 10:28 PM


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