Change Event: a cell's value changes

akardar1

New Member
Joined
Dec 22, 2010
Messages
23
Hello there,

Having been trying to to get this code to work, the C3 cell is a DDE link with live feed.
What am Iam doing wrong ?
I read the similar posts, and unable to make this work.
Any help will be appreciated.


'Change event
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$3" Then
Run "tickcount"
End If

End Sub

'Tick count generation

Sub tickcount()
Range("d3").Value = Range("d3").Value + 1
End Sub
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

Instead of Run "tickcount", try just tickcount:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$C$3" Then tickcount
End Sub
 
Upvote 0
Thanks for your reply.
That doesnt seem to do the trick.

- If I run F5 on tickcount, i can see D3 incrementing by 1.
- Running F5 on the change event doesnt run it.
- Cell C3 changes every few seconds as its a live feed, so i expect D3 to automatically increase by one.

Any other ideas?
Thanks alot for your help
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,334
Members
452,907
Latest member
Roland Deschain

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