?
Solved

Workbook_SheetCalculate Only Fire When Filter Changes

Posted on 2011-02-18
3
Medium Priority
?
926 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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 …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

777 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