VBA Code - Excel On Worksheet Change

backfromthebush

New Member
Joined
Jul 2, 2010
Messages
37
Hi,

I've written some code that when a value changes in column B, it will call another procedure. What is bugging me is that it worked to start with, and now it doesnt!!! Can anyone help?!! The called procedures work, but i cant get the "Worksheet_Change" procedure to work now!! AHH!

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("B:B")) Is Nothing Then
        '...change made in column B
    Call DefaultPlayerNull
    Else: Exit Sub
    End If
End Sub
Sub DefaultPlayerNull()
    If ActiveCell.Value = "**Available**" Then
        ActiveCell.Offset(0, 1).Value = Null
        Else: Call PlayersSelectedPos
    End If
End Sub
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Did you at some point when writing your code use....
Application.EnableEvents = False
...and then had a code error leaving the events turned off?

If yes, then reload your workbook or run this in its own macro
Application.EnableEvents = True
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,736
Members
452,940
Latest member
Lawrenceiow

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