ejecutar macro al cambiar valor de celda

asnieto

New Member
Joined
Oct 22, 2002
Messages
22
Hola:
Hace algun tiempo leo el foro, me ha sido muy util, los felicito.
finalmente me decidi a intervenir mas activamente.
Lei y use las instrucciones para ejecutar un macro cuando una celda cambia de valor y funciona muy bien si un valor se entra en ella. Sinembargo no era eso lo que yo tenia en mente.

Lo que deseo hacer es tener una celda con una formula que al alcanzar cierto valor dispare la macro.

Infinitamente agradecido.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hola asnieto,

Va un ejemplo :

Cuando la celda A1 contiene el valor 1234 se ejecuta la macro llamada "nombremacro"

------
Private Sub Worksheet_Change(ByVal Target As Excel.Range)

If Range("A1") = 1234 Then Call Nombremacro

End Sub
-----
Saludos, espero que sirva
 
Upvote 0

Forum statistics

Threads
1,216,751
Messages
6,132,508
Members
449,731
Latest member
dasda34

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