VBA – LCase String
The LCase function in VBA converts all uppercase letters within a string to lowercase letters.
LCase
Syntax:
LCase(string)
Parameter:
Return Value:
Example
Dim str1 As String Dim lowerCaseStr As String str1 = "Hello, World!" lowerCaseStr = LCase(str1) ' lowerCaseStr will be "hello, world!"
Use Cases:
Key Considerations: