Results 1 to 2 of 2

Forcing Input to Uppercase

Threaded View

  1. #1
    Registered User
    Join Date
    05-14-2010
    Location
    Rockingham Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Forcing Input to Uppercase

    I wish to force data entry in cell C15 to upper case and have used the following code. (which I found on your site).

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    
        If Not (Application.Intersect(Target, Range("C15")) Is Nothing) Then 
       
         	  With Target   
        
               		 Application.EnableEvents = False
    
               		 Target = UCase(Target.Cells(1)) 
           
               		 Application.EnableEvents = True    
         
           	End With     
         
       End If
    
    End Sub
    When I exit the cell nothing has changed but, if I click again in cell C15 the entry changes to Upper case. Why and how can I fix it please?

    Skin
    Last edited by alexskinner; 10-03-2015 at 03:19 AM. Reason: Change code to comply with rules

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Check to see if input box content is uppercase
    By phschris1 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-11-2011, 02:23 PM
  2. Forcing input by user when cells are changed
    By olliestyles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2011, 06:17 AM
  3. force input data to be uppercase
    By 435 Gavea in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-16-2007, 10:13 AM
  4. Forcing Uppercase
    By talytech in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-24-2007, 01:28 PM
  5. Forcing All Caps in input cells
    By Slave2Six in forum Excel General
    Replies: 8
    Last Post: 07-31-2006, 04:43 PM
  6. Have user input converted to uppercase in same cell as input?
    By Shannonn in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-19-2006, 10:25 PM
  7. [SOLVED] Forcing Input from a user
    By Tracy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-18-2006, 03:45 PM
  8. Forcing Uppercase into Cells
    By mikepalm in forum Excel General
    Replies: 4
    Last Post: 01-05-2006, 12:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1