Solved

Workbook_SheetCalculate Only Fire When Filter Changes

Posted on 2011-02-18
3
921 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 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
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…

730 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