ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Question about an event (https://www.excelbanter.com/excel-programming/287584-question-about-event.html)

Joost

Question about an event
 
I would like to run my script automatic when a value from one off my
collums changes. Can anyone help me out, cause im kinda stuck here.

Thanks in advance,

Joost Knol


---
Message posted from http://www.ExcelForum.com/


Jan Karel Pieterse

Question about an event
 
Hi Joost,

I would like to run my script automatic when a value from one off my
collums changes. Can anyone help me out, cause im kinda stuck here.


Check out the Worksheet_Change event:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Me.Range("A1:B10")) Is Nothing Then Exit Sub
MsgBox "Your code"
End Sub

Rightclick a sheet tab, choose View code and paste and modify the code
above.

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com


Joost

Question about an event
 
Thanks it worked :D


---
Message posted from http://www.ExcelForum.com/



All times are GMT +1. The time now is 07:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com