← Foro de Visual Basic

COLOR CELDA EXCEL

Hilo en el foro de Visual Basic · 26 de Diciembre del 2003 · 1 respuestas
BEGOYANTERO26 de Diciembre del 2003
Pregunta
HOLA:
COMO PUEDO HACER PARA QUE AL INTRODUCIR EN UNA CELDA DE EXCEL UN Nº AUTOMATICAMENTE SE PONGA DE UN DETERMINADO COLOR.
POR EJEMPLO SI ES MENOR QUE 5 SE PONGA EN ROJO , Y SI ES MAYOR O IGUAL A 5 EN AMARILLO

Respuestas 1

NEMT26 de Diciembre del 2003
Hola, quiza puedas poner un boton y agregar codigo a el, como tipo validacion, utilizando algun if,,,,
te mando un ejemplo... ojala te sirva...
Salu2
Private Sub CommandButton1_Click()
If Range("B5") > 1 Then
Selection.Font.ColorIndex = 3
Else
Selection.Font.ColorIndex = 0
End If
End Sub
¿Buscas más hilos como este? Mira el foro de Visual Basic o usa el buscador.