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.

Resaltar celda modificada

publicado

Hola:

Estoy trajando con una hoja de calculo que quisiera que en el rango de c6 : s54 , si hubiera alguna modificación, la celda modificada en su fondo se vuelva de color amarillo.

Gracias

Jesús

Hojamodificada.rar

Featured Replies

publicado

Buenas,

Incluye este código en la hoja "1Nal", no en un módulo, y me cuentas.

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("c6:s54")) Is Nothing Then
cambia = Target.Address
Range(cambia).Interior.Color = vbYellow
End If
End Sub[/CODE]

Un saludo,

Tese

publicado

¿ Y porqué no?

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("c6:s54")) Is Nothing Then
Target.Interior.Color = vbYellow
End If
End Sub[/CODE]

publicado

Porque la tuya, maestro, no "cambia" :D:D:D

O mejor, porque la mía tiene un número de líneas par, que como cualquier experto en VBA sabe, es el summum de la maestría! :P

Pues eso......

Chao,

publicado

.

Solo he querido resaltar el hecho que es posible trabajar con el rango Target directamente.:mad:

Pero lo realmente ortodoxo sería:

Private Sub Worksheet_Change(ByVal Target As Range)
For Each Celda In Target
If Not Application.Intersect(Celda, Range("c6:s54")) Is Nothing Then
Celda.Interior.Color = vbYellow
End If
Next
End Sub
[/CODE]

Paz y amor

.

publicado
  • Autor

Gracias por los códigos estan barbaros, les agradezco un monto, abrazos para todos

Saludos

Jesús

TEMA SOLUCIONADO

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.