LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default When Save As stop running macro

I have a macro that changes the attributes of an Excel file when I open the
file, from read only to readwrite, then increment a cell (A1) by one, save
the file then changes the attribute back to read only so that when I make
changes to the file I should Save As and not save it and overwrite the
original one.
The problem is that when I save the file, if I decided to open the new file
to review, the macro will run again and will increment A1.
What shall I do so that when the user Save As the file, the macro wont be
saved in the new file, or it wont run when the user reopen the file to
review.
Any help would be higly appreciated.


 
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
Stop Macro running when I save the workbook TyreDude Excel Worksheet Functions 1 July 9th 11 12:35 AM
Save To Csv Running A Macro stevekirk Excel Discussion (Misc queries) 2 August 11th 06 02:42 PM
How do I stop a Macro from running? JulianB Excel Worksheet Functions 1 April 10th 06 10:33 PM
How to stop getting the file save box when running a macro Pank Mehta Excel Discussion (Misc queries) 1 March 29th 05 04:05 PM
How to Pause or Stop a running Macro jfeka[_2_] Excel Programming 0 July 17th 03 11:14 PM


All times are GMT +1. The time now is 04:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"