mio piccolo soluzione a questo, sarebbe utilizzando RegExp:
Public Function demo(ByRef rngTarget As Range) As Boolean
Dim objRE As Object
Set objRE = CreateObject("vbscript.regexp")
With objRE
.Pattern = "[^a-z]"
.Global = True
'test will resolve true on any character other than a-z
demo = .Test(rngTarget.Value)
End With
Set objRE = nothing
End Function
inserire questo codice in un modulo, quindi utilizzarlo come una formula per un formato condizionale per le celle che si desidera testare.
formula sarà semplice come questo: =demo(A1)
Se avete bisogno di più informazioni a questo: MSDN
È possibile di utilizzo naturalmente VBA per testare tutte le celle utilizzate:
'This code needs to be placed as a worksheet macro,
'or a worksheet needs to be specified for UsedRange
Public Sub TestAll()
Dim rngCell as Range
For Each rngCell In UsedRange.Cells
if demo(rngCell) then
rngCell.interior.color = RGB(125,125,125)
end if
Next rngCell
End Sub
E i numeri, i trattini,!, @, #, $,%, ^, &, *, (,), Ecc.? – PowerUser
No, è un elenco di anagrammi, quindi solo lettere minuscole a-z. – Luke