text in caps

G

Guest

Guest
I want what to make sure the text in column E is caps how can this be done? Thanks
 
Autolycus that is what I am looking for but I can't get it to work by the way I am using Excel '97 thanks
 
Upvote 0

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
On 2002-02-25 16:11, Anonymous wrote:
Autolycus that is what I am looking for but I can't get it to work by the way I am using Excel '97 thanks

Right click on the sheet tab, select View Code, and paste the code into the module.
 
Upvote 0
NateO
Yes, good point. But I think it should be as follows otherwise the EventProcedures do not get re-enabled :-

Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng1 As Range, rng2 As Range, cell As Range
On Error GoTo errorhandler
Application.EnableEvents = False
If Not Intersect(Selection, Columns(5)) Is Nothing Then
Set rng1 = Intersect(Selection, Columns(5))
Set rng2 = Intersect(ActiveSheet.UsedRange, rng1)
For Each cell In rng2
If cell.Formula <> "" Then
cell.Formula = Format(cell.Formula, ">")
End If
Next cell
End If
errorhandler:
Application.EnableEvents = True
End Sub
 
Upvote 0
True indeed. I tripped it, only seems to matter on first-time entries...So I deleted my post to avoid confusion. Have a good one.

Cheers, Nate
 
Upvote 0
You must put the macro in the code module of the particular sheet where you want it to work, not in a normal module.
If you right click the sheet tab and select View Code, the sheet's module is the section on the right hand side of the screen.
Copy the macro supplied and paste it to the sheet's code module.
 
Upvote 0
If it still doesn't work after you've followed all the instructions, try running this macro (in a normal module) and then see if it works.

Sub Enable_Events()
Application.EnableEvents=True
End Sub
 
Upvote 0
Strange that it probably works for everyone, except you, who has read this thread and tried it. You must be doing something wrong.
Do you have anyone there that you can ask?
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,548
Members
449,038
Latest member
Guest1337

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