Oops! I'm sorry I didn't explain myself. I want the pivot tables to update
automatically:
Private Sub Worksheet_Activate()
ActiveSheet.PivotTables(1).PivotCache.Refresh
End Sub
But, I cannot put the code into any sheet without ending up with the error
coming up. I have had to delete all code in the workbook in order to avoid
the error.
FYI, I'm using Excel 2000.
S. Jackson
The message you described will appear any time a workbook contains code,
and your security level is set at Medium. It gives you the opportunity
to enable the macros, or disable them.
Since you created this workbook yourself, and know that the macros
aren't harmful, just click the Enable Macros button, and then your code
can run.
> Oops! I'm sorry I didn't explain myself. I want the pivot tables to update
> automatically:
[quoted text clipped - 82 lines]
>>Excel FAQ, Tips & Book List
>>http://www.contextures.com/tiptech.html

Signature
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html
S Jackson - 01 Sep 2005 15:58 GMT
Where on earth is the enable macros button????
Shelly Jackson
> The message you described will appear any time a workbook contains code,
> and your security level is set at Medium. It gives you the opportunity
[quoted text clipped - 95 lines]
> Excel FAQ, Tips & Book List
> http://www.contextures.com/tiptech.html
S Jackson - 01 Sep 2005 16:08 GMT
I gave up trying to fix that workbook and started over. I completely
redesigned things and it is much simplier to use. However, now I have a new
problem. Now when I insert the code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveSheet.PivotTables(1).PivotCache.Refresh
End Sub
on the worksheet that contains the pivot table, NOTHING happens. It does
not automatically update, nor do I get any messages about macros not being
enabled when I open the workbook or make entries.
This is the craziest thing I've ever seen. Any thoughts?
S. Jackson
> Where on earth is the enable macros button????
>
[quoted text clipped - 107 lines]
> > Excel FAQ, Tips & Book List
> > http://www.contextures.com/tiptech.html
Roger Govier - 01 Sep 2005 16:22 GMT
When you get the warning come up about Macros, you should have the
opportunity to choose "Enable".
If not, go to Tools>Macros>Security and set the level to Low

Signature
Regards
Roger Govier
> Where on earth is the enable macros button????
>
[quoted text clipped - 107 lines]
>> Excel FAQ, Tips & Book List
>> http://www.contextures.com/tiptech.html