Solved

Workbook_SheetCalculate Only Fire When Filter Changes

Posted on 2011-02-18
3
916 Views
Last Modified: 2012-05-11
Is it possible to determine which "event" has triggered the Workbook_SheetCalculate event? I have a code section within the Workbook_SheetCalculate code block (for various reasons must stay in the Workbook_SheetCalculate event) that I only want to run when the AutoFilters are changed. However, at the moment the code is run when any cell changes within the worksheet.
0
Comment
Question by:peddle
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 125 total points
ID: 34924876
Anything that causes the sheet to calculate will trigger that event, but have a look at Dave's article here: http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/A_2773-Trapping-a-change-to-a-filtered-list-with-VBA.html?sfQueryTermInfo=1+30+excel+filter
for some ways to get what you need.
0
 
LVL 45

Expert Comment

by:patrickab
ID: 34932953
peddle,

Please upload your file.

Patrick
0
 
LVL 1

Author Closing Comment

by:peddle
ID: 34942921
Great, worked brilliantly. Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

30 Experts available now in Live!

Get 1:1 Help Now