Change to UPPER Case

Steve 1962

Active Member
Joined
Jan 3, 2006
Messages
379
Office Version
  1. 365
Platform
  1. Windows
Hi

Could someone tell me what VBA code to use in order to have all entries in cells A3 to A5003 be automatically entered as UPPER case ?

Thanks

SH
 
Yes the macros are enabled. When I open excel 2007 a security prompt asks me if i want to enable macros and I click yes. Is it possible the macro isnt working because I have a filter in place for the rest of the chart on the sheet?
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Thanks it works in the blank workbook. Is there a way so when I enter a letter number code if the cell fill can change color based on the code? for example C12 = red C13 = green C14 = Blue C15 = yellow?
 
Upvote 0
I can now get the two macros to work separately but I want them to work together on the same sheet. I am getting a compile error: ambigous name detected: Worksheet_Change. How do I enter two macros on the same page? Also is there a way I can sort the cells in the chart alphabetically either by pressing a macro button or automatically after I enter a new value at the bottom of the list?
 
Upvote 0
Great! thank you. How can I add a sort function to organize the rows in alphabetical order either automatically after I enter a new value to the list, or by pressing a macro button? The values in column correspond to columns b c d and e so if cell A10 is sorted B10:E10 have to be sorted with it. I am currently using the filter function on excel but i was wondering if there is a better way.
 
Upvote 0
Try assigning this to a button

Code:
Sub SortMe()
Dim LR As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
Range("A1:E" & LR).Sort Key1:=Range("A2"), Order1:=xlAscending, _
        Header:=xlYes, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub
 
Upvote 0
Hello Peter,

I took your code and changed it to read range C3:C5000 and of course it works fine. What I would like it to do is only create upper case if the word "Client" shows up in column D. How can that be done?
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top