praveenpatel421983
New Member
- Joined
- Aug 17, 2017
- Messages
- 41
Hi all,
I working on a spreadsheet which contains columns with strings. These strings are entered by different users. I need these columns to be in upper case always due to some reasons. But when I use code to change it, everything turns into uppercase but format of text is gone.
eg: "This item is used in Product X" should become "THIS ITEM IS USED IN PRODUCT X" instead it becomes "THIS ITEM IS USED IN PRODUCT X". Words which are made bold with increased font size is not followed.
I went to many posts but couldn't find the solution. I used below code. Please let me know what to change in this
I also used this. this also didn't work
Please help
Thanks in advance!
Praveen
I working on a spreadsheet which contains columns with strings. These strings are entered by different users. I need these columns to be in upper case always due to some reasons. But when I use code to change it, everything turns into uppercase but format of text is gone.
eg: "This item is used in Product X" should become "THIS ITEM IS USED IN PRODUCT X" instead it becomes "THIS ITEM IS USED IN PRODUCT X". Words which are made bold with increased font size is not followed.
I went to many posts but couldn't find the solution. I used below code. Please let me know what to change in this
PHP:
Private Sub Worksheet_Activate()
Range("A1:AF300") = [index(upper(A1:AF300),)]
End Sub
I also used this. this also didn't work
PHP:
Private Sub Worksheet_Activate()
For Each x In Range("A1:AF300")
x.Value = UCase(x.Value)
Next
End Sub
Please help
Thanks in advance!
Praveen