prepričan sem, da bo tole znal kdo rešiti.
Koda: Izberi vse
For Each Cell In Range("e18:au19")
If Cell.Value.Row("18") = 3 then Cell.interior.Bold
Next CellPomoči bom zelo vesel in se vnaprej zahvaljujem.
lp Brane
Koda: Izberi vse
For Each Cell In Range("e18:au19")
If Cell.Value.Row("18") = 3 then Cell.interior.Bold
Next Cellbate napisal/-a:Zdravo,
prepričan sem, da bo tole znal kdo rešiti.
Napača je v stavku 'If', po moje tisti 'Row' !?Koda: Izberi vse
For Each Cell In Range("e18:au19") If Cell.Value.Row("18") = 3 then Cell.interior.Bold Next Cell
Za vsakršno pomoč se vnaprej zahvaljujem.
lp Brane
Koda: Izberi vse
For Each Cell In Range("e18:au19")
If Cell.Value.Row("18") = 3 Then
Cell.Interior.Bold = True
End If
Next CellKoda: Izberi vse
Dim Cell As Range
For Each Cell In Range("e18:au19")
If Cell.Value.Row("18") = 3 Then
Cell.Interior.Bold = True
End If
Next CellKoda: Izberi vse
...
Dim Cell As Range
...
For Each Cell In Range("e18:au18")
[color=red]If Cell.Value.Row("18") = 3 Then[/color]
Cell.Interior.Bold = True
End If
Next Cell
...Koda: Izberi vse
Sub Oznaci_krepko()
Dim Cell As Range
'...
For Each Cell In Range("e18:au18")
'Če je pogoj izpolnjen
If Cell.Value = 3 Then
Cell.Font.Bold = True 'Krepka pisava
Cell.Font.Size = 14 'Velikost pisave
Cell.Font.ColorIndex = 3 'Barva pisave = rdeča
Cell.Interior.ColorIndex = 5 'Barva ozadja celice = modra
Else
'Če pogoj ni izpolnjen
Cell.Font.Bold = False 'Krepka pisava
Cell.Font.Size = 10 'Velikost pisave 10 = ponavadi privzeta
Cell.Font.ColorIndex = 0 'Barva pisave = privzeta
Cell.Interior.ColorIndex = 0 'Barva ozadja celice = brez
End If
Next Cell
End Sub
Koda: Izberi vse
...
For Each Cell In Range("e18:au19")
If Cell.Value.Row("18") = 3 And _
Cell.Value.Row("19") = 1 Then
Cell.Font.Bold = True
End If
Next Cell
...Koda: Izberi vse
...
If Cell.Value = 3 And _
Cell.Offset(1, 0).Value = 1 Then
Cell.Font.Bold = True
Cell.Offset(1, 0).Font.Bold = True
End If
...