Friday, August 31, 2012

How To Change the Text Case in Excel using VBA Macro

Macro To Change Text Case in Excel
Macro To Change Text To Upper Case
Sub Upper()
For Each x In Range("A1:Z1000")
x.Value = UCASE(x.Value)
Next
End Sub

Macro To Change Text To Lower Case
Sub lower()
For Each x In Range("A1:Z1000")
x.Value = LCase(x.Value)
Next
End Sub

Macro To Change Text To Proper Case
Sub Proper()
For Each x In Range("A1:Z1000")
x.Value = Application.Proper(x.Value)
Next
End Sub

Thanks,Tamatam

No comments:

Post a Comment

Hi User, Thank You for visiting My Blog. Please post your genuine Feedback or comments only related to this Blog Posts. Please do not post any Spam comments or Advertising kind of comments which will be Ignored.

Featured Post from this Blog

How to compare Current Snapshot Data with Previous Snapshot in Power BI

How to Dynamically compare two Snapshots Data in Power BI Scenario: Suppose, we have a sample Sales data, which is stored with Monthly Snaps...

Popular Posts from this Blog