#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Macro on Cell change


Is it possible to write a macro that runs automatically when the value
of a cell changes and that cell has a formula.

For example: A3 = A1-A2 (e.g., 2-1=0)

Macro: if A3=0, then the macro runs.

I can get a macro to do this but only if I activate it manual, a
button, etc. I was wanting a macro to run just when a formula cell has
a certain value e.g., 0.

Would appreciate any help.


--
melafont
------------------------------------------------------------------------
melafont's Profile: http://www.excelforum.com/member.php...o&userid=36610
View this thread: http://www.excelforum.com/showthread...hreadid=568675

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Macro on Cell change


Place this macro in Sheet1.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Cells(3, 1) = 0 Then Macro1
End Sub


--
raypayette


------------------------------------------------------------------------
raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569
View this thread: http://www.excelforum.com/showthread...hreadid=568675

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Macro on Cell change


By changing the SelectionChange to just, Change, it works perfectly.

Thanks Ray.


--
melafont
------------------------------------------------------------------------
melafont's Profile: http://www.excelforum.com/member.php...o&userid=36610
View this thread: http://www.excelforum.com/showthread...hreadid=568675

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to change cell color Patti F Excel Discussion (Misc queries) 2 April 28th 06 07:13 PM
Macro To Change Cell Color (Continued) carl Excel Worksheet Functions 0 March 15th 06 03:10 PM
How do I change a macro to use relative cell addresses? Roger D Excel Discussion (Misc queries) 2 July 30th 05 07:35 PM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM


All times are GMT +1. The time now is 12:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"