ho un file excel con n righe ed n colonne, se nella colonna H l'importo è >1000 devo scrivere nella colonna I "SOLO CIRC" se è <1000 BANC/CIRC, e se è vuoto non scrivere nulla.
Ho scritto il seguente codice ma non fuziona (mi si blocca su "(.cells"), potreste aiutarmi.
Grazie e buona giornata
- Codice: Seleziona tutto
Dim M As Variant
US = Range("H" & Rows.Count).End(xlUp).Row
For M = 3 To US
If (.Cells(M, "H") > "1000,00") Then .Cells(M, "I") = "SOLO CIRC " Else _
If (.Cells(M, "H") < "1000,01") Then .Cells(M, "I") = "BANC/CIRC " Else _
If (.Cells(M, "H") = "") Then .Cells(M, "I") = " "
End If
Next M