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.

Seleccionar rango de celdas

publicado

Hola a todos:

Quiero dar las gracias a este foro porque pude resolver muchas de mis dudas con respecto a macros.

Mi duda es la siguiente y no la he encontrado o no la he entendido de forma correcta:

Tengo una macro "sonar" que me reproduce un sonido cuando una celda "C5" tiene la palabra "Error", y funciona correctamente con el siguiente codigo.

"Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)

With Target

If Range("C5") = "Error" Then sonar

End With

End Sub"

Pero necesito hacerlo no solo en la celda "C5" sino en un rango de celdas por ejemplo de "C5:H5".

Gracias por la ayuda

Featured Replies

publicado

Incluye este código en el evento, a ver si te funciona..

For each celda in Range("c5:h5")
If celda= "Error" Then sonar
next celda[/CODE]

Un saludo,

Tese

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.