Laeoli,
Boa Noite!
Supondo que os demais textbox se chama txt3501_2, txt3501_3, txt3501_4, txt3501_5, txt3501_6, txt3501_7, txt3501_8 e txt3501_9, utilize assim:
With ThisWorkbook.Worksheets("FORNO3501")
Select Case Range("E2").Value
Case "DESENVOLVIMENTO"
Me.txt3501_1.BackColor = &H80FFFF
Me.txt3501_2.BackColor = &H80FFFF
Me.txt3501_3.BackColor = &H80FFFF
Me.txt3501_4.BackColor = &H80FFFF
Me.txt3501_5.BackColor = &H80FFFF
Me.txt3501_6.BackColor = &H80FFFF
Me.txt3501_7.BackColor = &H80FFFF
Me.txt3501_8.BackColor = &H80FFFF
Me.txt3501_9.BackColor = &H80FFFF
Case "PETROLEO"
Me.txt3501_1.BackColor = &HFF00&
Me.txt3501_2.BackColor = &HFF00&
Me.txt3501_3.BackColor = &HFF00&
Me.txt3501_4.BackColor = &HFF00&
Me.txt3501_5.BackColor = &HFF00&
Me.txt3501_6.BackColor = &HFF00&
Me.txt3501_7.BackColor = &HFF00&
Me.txt3501_8.BackColor = &HFF00&
Me.txt3501_9.BackColor = &HFF00&
Case "RETRABALHO"
Me.txt3501_1.BackColor = &HFF80FF
Me.txt3501_2.BackColor = &HFF80FF
Me.txt3501_3.BackColor = &HFF80FF
Me.txt3501_4.BackColor = &HFF80FF
Me.txt3501_5.BackColor = &HFF80FF
Me.txt3501_6.BackColor = &HFF80FF
Me.txt3501_7.BackColor = &HFF80FF
Me.txt3501_8.BackColor = &HFF80FF
Me.txt3501_9.BackColor = &HFF80FF
Case "DEVOLUÇÃO"
Me.txt3501_1.BackColor = &H8080FF
Me.txt3501_2.BackColor = &H8080FF
Me.txt3501_3.BackColor = &H8080FF
Me.txt3501_4.BackColor = &H8080FF
Me.txt3501_5.BackColor = &H8080FF
Me.txt3501_6.BackColor = &H8080FF
Me.txt3501_7.BackColor = &H8080FF
Me.txt3501_8.BackColor = &H8080FF
Me.txt3501_9.BackColor = &H8080FF
Case "SIMILAR"
Me.txt3501_1.BackColor = &H8000000D
Me.txt3501_2.BackColor = &H8000000D
Me.txt3501_3.BackColor = &H8000000D
Me.txt3501_4.BackColor = &H8000000D
Me.txt3501_5.BackColor = &H8000000D
Me.txt3501_6.BackColor = &H8000000D
Me.txt3501_7.BackColor = &H8000000D
Me.txt3501_8.BackColor = &H8000000D
Me.txt3501_9.BackColor = &H8000000D
End Select
End With
Desenvolvo pequenas soluções em VBA Excel a valores que variam entre R$ 50,00 a R$ 200,00. Se te interessar, entre no meu instagran (vba_excel_desenvolvimento)
Atenciosamente
Wagner Morel
Postado : 12/01/2014 7:19 pm