You are on page 1of 1

Dar formato a texto Mayúscula y Minuscula

Sub mayuscula()

Set MyText = Application.InputBox( _

Prompt:="Seleccione su texto", _

Type:=8)

For Each CellSelected In MyText

CellSelected.Value = UCase(CellSelected.Value)

Next CellSelected

End Sub

Sub minuscula()

Set MyText = Application.InputBox( _

Prompt:="Seleccione su texto", _

Type:=8)

For Each CellSelected In MyText

CellSelected.Value = StrConv(CellSelected.Value, vbProperCase)

Next CellSelected

End Sub

You might also like