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.

Formato condicional en un rango variable

publicado

Buenas tardes

Tengo la siguiente macro que la hice con la grabadora

Sub condindagts()
'Selection.FormatConditions(1).StopIfTrue = False
Range("A2:A30").Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=ESBLANCO($I2)"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 5263615
.TintAndShade = 0
End With
Selection.FormatConditions(1).StopIfTrue = False
Range("A1").Select
End Sud

Lo que hace es colorear de rojo en el rango de a1: a30 si la celda de la columna I esta vacía, solo que yo ingreso datos en la columna A o sea va incrementando a mas de a30 , lo que necesito es no tener que cambiar cada vez el rango de la condición, si no tal vez actualizar  y que automáticamente incremente el rango hasta la ultima celda con dato de la columna A.

Muchas gracias por su atención

Saludos

Jesús

 

Condición.xlsm

Featured Replies

publicado

Hola Jesus Miguel,

CAmbia

Range("A2:A30").Select

por esto

 Range("A2", Range("A2").End(xlDown)).Select

SAludos

Ikanni

  • 1 month later...
  • Enigma25 bloqueó este tema

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.