LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Enter Text only in CAPS

Can't imagine why anyone would want all CAPS but here is event code to do the
job.

Works on columns 1 through 8.............edit to suit.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column 8 Then Exit Sub
On Error GoTo ErrHandler
Application.EnableEvents = False
Target.Formula = UCase(Target.Formula)
ErrHandler:
Application.EnableEvents = True
End Sub

This is event code. Right-click on the sheet tab and "View Code".

Copy/paste into that sheet module.

As you enter text in any cell it will change to CAPS.


Gord Dibben MS Excel MVP

On Mon, 23 Jul 2007 09:02:05 -0700, juanpablo
wrote:

Hi,

I want to know how can I create a macro or formula tha only accepts text in
capital letters?

Thanks




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fix all caps text to first letter caps MBartine Excel Discussion (Misc queries) 1 August 8th 06 03:02 AM
How can I convert all Caps to first letter caps in Excel? Fenljp26 Excel Worksheet Functions 5 June 30th 05 11:35 AM
ALL CAPS to regular text? vms Excel Worksheet Functions 6 June 17th 05 05:31 PM
excel sheet all caps and needs to be only the first letter caps.. kroberts Excel Discussion (Misc queries) 1 March 7th 05 02:44 PM
Making text all CAPS in excel Jon Excel Worksheet Functions 4 December 13th 04 09:06 PM


All times are GMT +1. The time now is 03:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"