+ Reply to Thread
Results 1 to 3 of 3

Insert space where Non-Capitals meet Capitals

  1. #1
    Forum Contributor
    Join Date
    11-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    405

    Question Insert space where Non-Capitals meet Capitals

    Hi Guys.

    Im using the following validation code to generate a list that does not show duplicate data entries

    Please Login or Register  to view this content.

    This code works great but I want to have better formatting for the drop down validations that are created.

    So what I want to achieve is a way to have this code modify the values displayed in the validation drop down list whenever a value appears that has small letters immediately proceeded with a capital letter. i.e. microsoftExcel.
    I want to have this modified in the drop down selection but not the actual cells value from where the validation found the value, so that it inserts a Space before the capital letter E in the example. thus making the selection 'microsoft Excel'. is there a way in which we can do this?

    for example:
    A1: microsoftExcel..................................C1: (Possible selections would be) microsoft Excel, Windows, Computer, Mac
    A2: Windows
    A3: Computer
    A4: microsoftExcel
    A5: Mac

    please see for more information and sample workbook: http://www.excelforum.com/excel-prog...uplicates.html

    Is there a sensible way to achieve this or is there a more simplistic answer to my problem such as running a sub routine to insert the spaces before the validation box searches the column for the values..


    kind regards

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Insert space where Non-Capitals meet Capitals

    add a function like this
    Please Login or Register  to view this content.
    then call that when building the string
    Please Login or Register  to view this content.
    btw using this method you are limited to about 255 letters in the validation string.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor
    Join Date
    11-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    405

    Re: Insert space where Non-Capitals meet Capitals

    Thank you JosephP!
    Last edited by jordan2322; 05-28-2012 at 07:52 PM.

+ 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