+ Reply to Thread
Results 1 to 5 of 5

Proper Case not working

  1. #1
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Somerset, England
    MS-Off Ver
    XP, 2003, 2007 - depends on location
    Posts
    185

    Proper Case not working

    Hi,

    I am trying to force the input of a text box to be changed to Proper Case (First letter of each word capitalised) but for some reason it is not working. I am using the fucntion below, can anybody see what I am doing wrong?

    Please Login or Register  to view this content.
    Thanks,
    David
    Last edited by VBA Noob; 09-10-2008 at 08:24 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    text boxes do not have a lostfocus event, so that will be a normal routine in your userform class that requires a call.

    is the code from a vb example?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    This works for me, change the textbox name

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Somerset, England
    MS-Off Ver
    XP, 2003, 2007 - depends on location
    Posts
    185
    RoyUK - Works a treat thank you.

    Andy Pope - The code came from another forum as a solution for the same problem.

    Thanks to you both.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by duckboy1981 View Post
    RoyUK - Works a treat thank you.

    Andy Pope - The code came from another forum as a solution for the same problem.

    Thanks to you both.
    Best stick to this forum then (LOL)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. PROPER Formula Meeting With Postcode Problems
    By SamuelT in forum Excel General
    Replies: 4
    Last Post: 04-10-2008, 10:28 AM
  2. Cash Budget Question in relation to Excel
    By aceman in forum Excel General
    Replies: 2
    Last Post: 06-11-2007, 09:32 AM
  3. XIRR: Different cash flows but same answer. Why?
    By Guy Hoffman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-24-2007, 11:37 AM
  4. proper format for functions
    By DKY in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-13-2007, 08:39 AM
  5. Can I identify entries NOT done in Proper case?
    By Potoroo in forum Excel General
    Replies: 2
    Last Post: 10-12-2006, 12:42 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