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 automaticamente este macro

publicado

Sub CambiarColorCeldaCondicion()
Dim miRango As Range
Set miRango = Range("I7:AM300")
For Each celdaActual In miRango
   If celdaActual.Value = "LJO" Then celdaActual.Interior.Color = RGB(255, 204, 204)
   If celdaActual.Value = "T" Then celdaActual.Interior.Color = RGB(0, 204, 204)
   If celdaActual.Value = "L" Then celdaActual.Interior.Color = RGB(119, 210, 85)
   If celdaActual.Value = "V" Then celdaActual.Interior.Color = RGB(255, 255, 204)
   If celdaActual.Value = "C" Then celdaActual.Interior.Color = RGB(255, 229, 204)
   If celdaActual.Value = "I" Then celdaActual.Interior.Color = RGB(189, 183, 107)
   If celdaActual.Value = "HA" Then celdaActual.Interior.Color = RGB(65, 105, 225)
   If celdaActual.Value = "" Then celdaActual.Interior.Color = xlNone
Next

End Sub

Featured Replies

publicado

Hola,

Segun te entiendo. quieres que cambie el fondo de la celda donde estas escibiendo, siempre y cuando la celda este en el rango MiRango.

Prueba esto con el evento Change de la hoja donde está MiRango

Private Sub Worksheet_Change(ByVal Target As Range)
   Dim miRango As Range
   Set miRango = Range("I7:AM300")
   If Application.Intersect(miRango, Target) Then
      Select Case Target
            Case Is = "LJO": Target.Interior.Color = RGB(255, 204, 204)
            Case Is = "T": Target.Interior.Color = RGB(0, 204, 204)
            Case Is = "L": Target.Interior.Color = RGB(119, 210, 85)
            Case Is = "V": Target.Interior.Color = RGB(255, 255, 204)

               '...

      End Select
   End If
End Sub

 

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.