Ok before you say "Easy, just use the UPPER function" that's not not what I want.
If I type abc123 in cell A1 I want it to convert to ABC123 in A1 as soon as I hit enter. I don't think it is possible, but I thought I'd ask.
Thanks in advance
Jase
Ok before you say "Easy, just use the UPPER function" that's not not what I want.
If I type abc123 in cell A1 I want it to convert to ABC123 in A1 as soon as I hit enter. I don't think it is possible, but I thought I'd ask.
Thanks in advance
Jase
Jase,
it is possibel, but you will need to use the worksheet change event to run a macro.
Paste the following code into the worksheet code for the sheet in question and it should do what you want.
PHP Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Target.Value = UCase(Target.Text)
End Sub
Kieran
Thanks Kieran,how do I get to the worksheet code?
An existing example of this can be done is found athere.
Note how this example is fairly close to your orginal request, did you search the forum first?
Thanks mate, that worked a treat. Can you make this cell or range specific instead of the whole worksheet?
Jase
Replace the code with this below
It restricts the action to A1:D10. Change the reference as appropriate.
Please Login or Register to view this content.
Last edited by Kieran; 11-24-2008 at 01:51 AM. Reason: forgot to wrap the code.
Thanks mate, I appreciate all your help.
Jase
ps, how do I mark this as solved? or is that something the moderators do?
I really don't know about marking it as solved.
does the thread tools drop-down at the top of the panel show anyting to you (as the creator of the thread)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks