Advertisement
Pastebinuser1993

Case

Jun 17th, 2023
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub CommandButton1_Click()
  2.  
  3. Dim mycell As Range Dim myrange As Range
  4.  
  5. Set myrange = Worksheets("Changing Text").Range("B3:D10")
  6.  
  7. For Each mycell in myrange
  8.  
  9. 'mycell.Value LCase(mycell.Value)
  10.  
  11. mycell.Value StrConv(mycell.Value, vbProperCase)
  12.  
  13. Next mycell
  14.  
  15. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement