ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to run macro after changes in a cell? (https://www.excelbanter.com/excel-programming/333028-how-run-macro-after-changes-cell.html)

Demian

how to run macro after changes in a cell?
 
Thanks in advance
Tomasz



Tom Ogilvy

how to run macro after changes in a cell?
 
See Chip Pearson's page on Events.

You would look for the Change event I would think

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy


"Demian" wrote in message
...
Thanks in advance
Tomasz





ben

how to run macro after changes in a cell?
 
First, Subject line is for a subject, put your question in the main text body.



Put the macro in the worksheet Module and use


Private Sub Worksheet_Change(ByVal target As Excel.Range)
if target.address = "Celladdress you want to change" then

'code to run here

end if
end sub
--
When you lose your mind, you free your life.


"Demian" wrote:

Thanks in advance
Tomasz





All times are GMT +1. The time now is 06:25 AM.

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