Sub AGENZIE()
'
' AGENZIE Macro
'
'Range("A3").Select
If Range("A3") = ("ANCONA") Then
Range("A4").Select
Else
Selection.EntireRow.Insert
Range("A3").Select
ActiveCell.FormulaR1C1 = "ANCONA"
Range("A3").Select
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
Selection.Font.ColorIndex = 2
Selection.Font.Bold = True
Range("A4").Select
End If
'FINE ANCONA'
Range("A4").Select
If Range("A4") = ("ANDRIA") Then
Range("A5").Select
Else
Selection.EntireRow.Insert
Range("A4").Select
ActiveCell.FormulaR1C1 = "ANDRIA"
Range("A4").Select
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
Selection.Font.ColorIndex = 2
Selection.Font.Bold = True
Range("A5").Select
End If
'FINE ANDRIA'
Range("A5").Select
If Range("A5") = ("BOLOGNA") Then
Range("A6").Select
Else
Selection.EntireRow.Insert
Range("A5").Select
ActiveCell.FormulaR1C1 = "BOLOGNA"
Range("A5").Select
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
Selection.Font.ColorIndex = 2
Selection.Font.Bold = True
Range("A6").Select
End If
'FINE BOLOGNA'
|