Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

selection value in uppercase

Status
Not open for further replies.

sunnytahir

Programmer
May 11, 2003
32
i want to change the value of selection (some rows & columns) in uppercase in excel.
 
If you mean you want to change the text in all of the selected cells to upper case, here is one way:
[blue]
Code:
Sub UpperCaseSelection()
Dim c As Range
  Application.ScreenUpdating = False
  For Each c In Selection
    c.Value = UCase(c.Value)
  Next c
  Application.ScreenUpdating = True
End Sub
[/color]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top