
If TestL9 = 2 Then 'Controlla la quantità di caratteri 'If Test9 Like "[sCAP2.Value-sCAP3.Value][sCAP4.Value-sCAP5.Value]" Then 'si riferisce a delle variabili String, NON FUNZIONA 'If Test9 Like "[Cells(4,2)-Cells(5,2)][Cells(6,2)-Cells(7,2)]" Then 'si riferisce a delle celle, NON FUNZIONA 'If Test9 Like "[A-B][C-D]" Then 'FUNZIONA MsgBox "OK" End If |
If Test9 Like "[ " & Cells(4, 2) & "-" & Cells(5, 2) & "][" & Cells(6, 2) & "-" & Cells(7, 2) & "]" Then |
