MS Excel: LCASE Function (VBA)

This Excel tutorial explains how to use the Excel LCASE function with syntax and examples.

Description

The Microsoft Excel LCASE function converts a string to lower-case.

Syntax

The syntax for the Microsoft Excel LCASE function is:
LCase( text )

Parameters or Arguments

Text is the string that you wish to convert to lower-case.

Applies To

The LCASE function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The LCASE function can be used in Microsoft Excel as the following type of function:
  • VBA function (VBA)

Example (as VBA Function)

The LCASE function can only be used in VBA code in Microsoft Excel.
Let's look at some Excel LCASE function examples and explore how to use the LCASE function in Excel VBA code:
LCase("ALPHABET")
Result: "alphabet"

LCase("Tech on the Net")
Result: "tech on the net"

LCase("124ABC")
Result: "124abc"
For example:
Dim LResult As String

LResult = LCase("This is a TEST")

Total Pageviews

2016 © BiztechCS
Planer theme by BiztechCS