Worksheet_Change doesn't work

  • Thread starter Thread starter Dkline
  • Start date Start date
D

Dkline

In a worksheet named "GUI" I have a drop-down in cell "B15". What I need to
do is as the end user makes a selection change in this drop-down, it runs a
macro to recalculate.

I am using the code below in the "GUI" worksheet:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "B15" Then
Call SideFundSolve
End If
End Sub

The behavior I'm getting as I watch it in the debugger is it just skips over
the Call. What am I doing wrong?
 
See if this will work for you...


Private Sub Worksheet_Change(ByVal Target As Range)
Dim myList As String
If Intersect(Target, Range("B15")) Is Nothing Then
Else
myList = Target.Value
MsgBox "B15 Changed"
End If
End Sub
 
Hi There,
Try this
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("B15").Address Then
Call SideFundSolve
End If

HTH
Graham
 
Thanks for your help. It's interesting that your solution worked without an
absolute reference.
 
Because he is not using the address string, but the Range("B15")

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top