Worksheet_Change event Question

nicnad

Board Regular
Joined
Sep 12, 2011
Messages
199
Hi,

I have a macro that I want to run when a cell is changed in column "D"

I have the following code :

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
macro1
End If
End Sub

The thing is that Excel still makes calculation even when I change a cell that is not in the D column. So everytime I change a cell I need to wait 2-3 seconds for Excel to calculate nothing. Is there a way to make this code more efficient?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
You can use:

Application.Calculation = xlManual

and set it back to Automatic at the end:

Application.Calculation = xlAutomatic

HTH,
 
Upvote 0
For some reason Excel still does calculation when I change any cell in the worksheet. Do you have any other advices?
 
Upvote 0
Not utterly sure, but would suspect too many volatile functions.
 
Upvote 0
The only functions I have on this sheet are hyperlink. But I have many other sheets that refer to value in this sheet. Could this be the problem and how do I solve it?
 
Upvote 0
Just curious - have you looked to see what formulas or CF or ? is being calculated ea time?
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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