Be the first user to complete this post

  • 0
Add to List

VBA-Excel : Strings Functions – Ucase

Description: 

This function converts the input string to Upper case.

Format:

UCase(strString)

Arguments:

  • strString
    • Mandatory
    • Type: String
    • String whose characters to be converted in Upper case.

Function FnUpperCase()

    Dim mainString

    mainString = "SumitJain"

    MsgBox UCase(mainString)

End Function
UCase
UCase

Also Read About  Other String() Functions

INSTR()                       |                         InstrREV()                       |                        LCase()

UCase()                      |                         Left()                                |                        Right()

LTrim()                        |                         Mid()                                 |                        Trim()

RTrim()                       |                        Replace()                          |                        Space()

Len()                           |                        StrComp()                         |                        String()



Also Read:

  1. VBA Excel – Looping Through a Range of Cells
  2. VBA-Excel: CurrentRegion
  3. VBA-Excel : Strings Functions – Left
  4. VBA Excel - Cells, Ranges and Offset : Cells
  5. VBA-Excel: String Functions – strComp()