Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ejecutar una macro con el valor de una celda

publicado

Hola:

Aunque creo que es un tema ya tratado con anterioridad, se me ha ocurrido utilizar Application.OnTime para hacerlo.

Colocar en la hoja:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = ("$A$1") Then LlamarMacro Target
End Sub
[/CODE]

Colocar en un módulo:

[CODE]
Sub LlamarMacro(Macro As Variant)
Application.OnTime Earliesttime:=Now, Procedure:=Macro
End Sub
[/CODE]

Cada vez que cambie A1 se ejecutará la macro que contenga su valor.

Ni que decir tiene que también podríamos utilizar este método con un TextBox de un formulario o cualquier otra variable desde un módulo.

Saludos.

Una vez publicado el aporte he encontrado este enlace en relación al mismo tema:

https://www.ayudaexcel.com/foro/macros-programacion-vba/18066-ejecutar-macro-al-seleccionar-valor-lista-desplegable-2-a.html

Featured Replies

No hay posts para mostrar

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.