nokPT Escreveu:Eu acho que a questão é mais fazer tudo automaticamente para poupar tempo e/ou aumentar a produtividade
É exactamente isso que pretendo.
O que o amigo patinhofeio diz é certo, mas para orçamentos grandes dá algum trabalho. O tempo é um recurso muito valioso e eu estou a tentar rentabiliza-lo.
Já experimentei com o código em Visual basic e está a resultar.
o Código ficou assim:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Not Intersect(Target, Range(Cells("an"), Cells(Cells.Rows.Count, "an"))) Is Nothing Then
If UCase(Target.Value) = "X" Then
Cells(Target.Row, "ag").Font.Bold = True
Cells(Target.Row, "k").Font.Bold = True
Cells(Target.Row, "w").Font.Bold = True
Else
Cells(Target.Row, "ag").Font.Bold = False
Cells(Target.Row, "k").Font.Bold = False
Cells(Target.Row, "w").Font.Bold = False
End If
End If
If Not Intersect(Target, Range(Cells("ao"), Cells(Cells.Rows.Count, "ao"))) Is Nothing Then
If UCase(Target.Value) = "X" Then
Cells(Target.Row, "ag").Font.Bold = True
Cells(Target.Row, "k").Font.Bold = True
Cells(Target.Row, "w").Font.Bold = True
Else
Cells(Target.Row, "ag").Font.Bold = False
Cells(Target.Row, "k").Font.Bold = False
Cells(Target.Row, "w").Font.Bold = False
End If
End If
End Sub
Graças ao participante jpaulino do forum
http://www.portugal-a-programar.org consegui chegar à solução
