Macro Selection Help

billythedj66

Board Regular
Joined
Jan 6, 2003
Messages
126
Happy Post-Halloween All,

I have the following macro:

Private Sub Worksheet_Change(ByVal Target As Range)

Sheets("Old Round").Unprotect
Application.Run "'Stats.xlsm'!ClearScorecard"
Application.Run "'Stats.xlsm'!SetScorecard"
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
Range("A1").Select
ActiveWindow.ScrollRow = ActiveCell.Row
ActiveWindow.ScrollColumn = ActiveCell.Column
Range("D8").Select

End Sub

Which works exactly like I want except that it runs whenever I enter data into any cell. How can I make this macro only run when cell "D8" changes. Cell "D8" has data validation with a list. I believe this is an easy fix, any help would be appreciated.

Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You can try a line at the beginning like

If Target.Address <> "$D$8" Then Exit Sub
 
Upvote 0

Forum statistics

Threads
1,226,224
Messages
6,189,726
Members
453,566
Latest member
ariestattle

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