Calling Worksheet Change Event Directly from VBA

biocentrism

Board Regular
Joined
Jul 28, 2014
Messages
187
Is there a way to call a Worksheet Change Event using code?

I want to have the Worksheet Change Event execute as if the event actually occurred.

I have tried:
Code:
Call Worksheet_Change

but of course this did not work.

I read online that this was not possible. But I neither believe nor like this answer.

Thank you.
 
Not sure what you mean by linked. It was not linked as far as I am aware like a Form control is linked. But its event would increment the date in cell B1 by +1 or -1.

As for calling an event directly, I am a bit confused. Michael responded that it could be done but required serious coding written by Chip Pearson. Your example of passing a Range object is MUCH simpler and it works!!!

Do you know in what situation one would need to use Michaels/Chips solution?

Thank you.
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I mean had you set its LinkedCell property?

The code Michael referred to is for creating a worksheet_change event in code, not for calling an existing one.
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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