+ Reply to Thread
Results 1 to 6 of 6

Make a cell PROPER automatically

Hybrid View

  1. #1
    Registered User
    Join Date
    01-13-2012
    Location
    SLD
    MS-Off Ver
    Excel 2010
    Posts
    73

    Make a cell PROPER automatically

    Hi experts,
    I have a thing that really needs your help. I want to make a text in a cell in PROPER case, for example, I enter a tex in a cell “make this proper”, after I finish by hitting Enter or Tab, the text in that cell will automatically proper the text to “Make This Proper”. I think this should have a macro but don’t know how to do it.
    Thank for your help.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Make a cell PROPER automatically

    there is a formula that can help you

    =PROPER(A1)
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    01-13-2012
    Location
    SLD
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Make a cell PROPER automatically

    I knew how to Proper a cell, but here I want to proper the cell itself right after I edit it. Let's go back with my example, I modify Cell A1, as soon as I het Enter or tab to move to next cell, the text in A1 will be propered.

  4. #4
    Registered User
    Join Date
    11-23-2011
    Location
    VietNam
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Make a cell PROPER automatically

    Try
    PHP Code: 
    Private Sub Worksheet_Change(ByVal Target As Range)
    On Error Resume Next
    If Not Application.Intersect(TargetRange("A1:O30")) Is Nothing Then
    Target
    .Value Application.Proper((Target.Value))
    End If
    End Sub 

  5. #5
    Registered User
    Join Date
    01-13-2012
    Location
    SLD
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Make a cell PROPER automatically

    I tried (I opened VBA, inserted module, copied the code, tried enter text to see if it change, Am I goingthe right way?) but seemed not work, can you please check it again, tkss!
    Last edited by vietdieu; 02-29-2012 at 10:10 PM.

  6. #6
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Make a cell PROPER automatically

    instead of entering the code in a new module, double click you sheet in the browser on the left, and enter the code there.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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