#1   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default Excel Macros

I have a workbook that contains serveral formatting macros that I use when I
prepare it. I then post it to the company Intranet site for others to view.
Whenever anybody opens and then closes it, it asks them whether they want to
save it or not, even though no changes are made. I am assuming that it is
the presence of the macros that is causing this behavior. Is there a way to
disable the macros before I post it and then enable them when I need to
update it?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Excel Macros

It is not the mere presence of the macros that is causing that behavior.
Something in the workbook is actually changing something in a cell or other
area such as a header or footer - possibly an auto-updating field such as
getting the date in a sheet's cell or header.

Unless macro code actually runs and changes something, it is not the cause
of that prompt. If you have to manually call the macros either through Tools
| Macro | Macros ... or click a button or use a shortcut to activate them,
then unless the user is doing that, it is not the macros that are at issue.

You might try setting Calculations to not automatic in Tools Options
Calculate and see if that helps. But if your 'viewers' need to make changes
to it, then they'd have to use [F9] to see the results of changes they made
that may affect the results of formulas that are dependent on those changes.

"Tom" wrote:

I have a workbook that contains serveral formatting macros that I use when I
prepare it. I then post it to the company Intranet site for others to view.
Whenever anybody opens and then closes it, it asks them whether they want to
save it or not, even though no changes are made. I am assuming that it is
the presence of the macros that is causing this behavior. Is there a way to
disable the macros before I post it and then enable them when I need to
update it?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Excel Macros

Tom

If the macros are not event type code they will trigger no changes.

I suspect you have one or more volatile functions hanging around.

Could be a NOW() or TODAY()

List of volatile functions........

AREAS()
OFFSET()
CELL()
INDIRECT()
NOW()
TODAY()
RAND()

Any one or more of these would cause the workbook changes.


Gord Dibben MS Excel MVP

On Thu, 15 Mar 2007 13:35:15 -0700, Tom wrote:

I have a workbook that contains serveral formatting macros that I use when I
prepare it. I then post it to the company Intranet site for others to view.
Whenever anybody opens and then closes it, it asks them whether they want to
save it or not, even though no changes are made. I am assuming that it is
the presence of the macros that is causing this behavior. Is there a way to
disable the macros before I post it and then enable them when I need to
update it?

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
Macros - copying macros from one computer to another TT Excel Discussion (Misc queries) 18 December 14th 06 03:24 AM
Macros in Excel 12 Elfego Baca Excel Discussion (Misc queries) 1 May 31st 06 09:41 PM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM
Macros in Excel Looney Excel Discussion (Misc queries) 2 May 18th 05 07:04 PM
Macros in Excel X for Mac Coulter Excel Worksheet Functions 0 March 18th 05 09:43 PM


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