VBA - Lcase

A função LCase retorna a string após converter a string inserida em letras minúsculas.

Sintaxe

Lcase(String)

Exemplo

Adicione um botão e coloque a seguinte função dentro do mesmo.

Private Sub Constant_demo_Click()
   var = "Microsoft VBScript"
   msgbox("Line 1 : " & LCase(var))
   
   var = "MS VBSCRIPT"
   msgbox("Line 2 : " & LCase(var))
   
   var = "microsoft"
   msgbox("Line 3 : " & LCase(var))
End Sub

Ao executar o script acima, ele produz a seguinte saída.

Line 1 : microsoft vbscript
Line 2 : ms vbscript
Line 3 : microsoft