Change Case in Excel without Formula | How to change Lowercase to Uppercase in Excel

preview_player
Показать описание
How to enable Change case (Lowercase, Uppercase, Proper case letters) in MS-Excel 2007, 2010, 2013 & 2016 Without Formula using Macro code (VBA-Visual Basic Editor)

--------------------------Macro Code-----------------------

Sub ChangeTextCase()

Dim strChange As String

strChange = InputBox("Type l, u, or p to change case:" & vbCr & vbLf & vbCr & vbLf & _
"Lowercase = l, uppercase = u, proper case = p", "Change case of selected cells", "")

Select Case strChange

Case "l", "L"
For Each x In Application.Selection
x.Value = LCase(x.Value)
Next

Case "u", "U"
For Each x In Application.Selection
x.Value = UCase(x.Value)
Next

Case "p", "P"
For Each x In Application.Selection
x.Value = WorksheetFunction.Proper(x.Value)
Next

Case Else
MsgBox "Type l, u, or p." & vbCr & vbLf & vbCr & vbLf & "Click OK to start over."

End Select

End Sub

-----------------Related Videos----------------------

--------------------------My Stuff-----------------------

--------------------------Follow us-----------------------

Keep Watching, Keep learning...!!!

-~-~~-~~~-~~-~-
Please watch: "How to Use Macro in Excel | How to Create Macros in Excel | Macro Record kaise kare | Macro in Excel"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

This is awesome, no BS, straight to the tutorial

edgabrillo
Автор

ZERO idea why this isn't native. maddening. You helped a lot, thank you.

mojocosmetics
Автор

This is amazing. Made my day. Thanks a lot

maheshtendulkar
Автор

Need this all time and Work it properly. Many Many

SumonAhmed-xinq
Автор

Thanks a lot for this shortcut, very useful buddy. Great ..!

spreadthehappiness
Автор

Wonderful macro and great explanation.

How to write a macro if we would like to change text formatting such as bold, italics, strike through?

metinatahan
Автор

Liked and subscribed. Great job thank you.

haythamghareeb
Автор

This absolutely work 1B %....thx dude....

cahzemarank
Автор

Best best best ....Thankyou so much it helped me alot

housefactor
Автор

Thankyou sir, 100 times ( kitna pareshan tha mai aapne to kamal kr diya)❤

uixqscj
Автор

Love u ever ...u saved my time alot...now am subscribed, liked ...thank u soooo much....

HDmoviestheatre
Автор

Thank you bro... This Code is very help full my problem

darlingjay
Автор

👌🧠👏New viewers please try this, i tried this one its perfectly worked.❤🎉🌠

theannan