La funzione VBA di UCASE converte una stringa di caratteri in maiuscolo.
UCase(testo)
Conversione di una stringa in maiuscolo:
Sub UCaseExample()
text = "Ref-45-X-876-rt"
text = UCase(text)
MsgBox text 'Resi: REF-45-X-876-RT
End Sub