Launching a macro by changing a cell

  • Thread starter Thread starter daniroy
  • Start date Start date
D

daniroy

Hello there,

I need to Launch Sub XYZ() when changing cell "C8" in Sheet123.

How am I suppose to do that ?

thanks everybody!
 
Hello there,

I need to Launch Sub XYZ() when changing cell "C8" in Sheet123.

How am I suppose to do that ?

thanks everybody!

Copy the following Macro to the code sheet of worksheet "Sheet123"

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$8" Then
Call XYZ
End If
End Sub

cheers,
Stephan
 

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