Altering the "Workbook_SheetChange" event dynamically from an add-in

pczegle

New Member
Joined
Nov 24, 2010
Messages
24
I wrote a macro that dynmically filters an Excel table as the user makes entries into it. The rest of the table is filtered based on the contents of the row into which the user is making changes / additions. When all columns in the row have been entered, only duplicates of that row will survive the dynamic filter. The macro resides in an add-in. I also defined a toggle for this dynamic filtering capability that users can switch on and off from the menu bar.

Question:
In order for this to work, the "Workbook_SheetChange" event of the workbook being changed must pass control to the macro in the add-in. In case the user opens a workbook that does NOT have the "Workbook_SheetChange" event pass control to the macro in the add-in, I'd like the "Workbook_SheetChange" event to be altered on the fly when the user turns the dynamic filter toggle on. Is there a way to do this?

Thanks.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,224,595
Messages
6,179,799
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top