+ Reply to Thread
Results 1 to 5 of 5

Remove duplication and sort a string

  1. #1
    Registered User
    Join Date
    12-07-2008
    Location
    Canada
    Posts
    3

    Remove duplication and sort a string

    This is my first time coding in VB. I'm using excel 2007 and windows vista.

    I have 2 cells, A1 contains (01,) and B1 contains (01, 08). I want the result in cell C1 to be (01, 08) by calling function trim_sort($A1&$B1)

    The code gives me an error "invalid qualifier" for s.length & more

    Could you please have a look at my code, and tell me what's wrong.

    Please Login or Register  to view this content.
    Last edited by TimN; 12-07-2008 at 05:14 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Tim,

    Welcome to the forum.

    In order to avoid having to answer the same questions every day, we require that posters compose thread titles that make the forum usefully searchable. Your title doesn't advance that goal.

    Please take a few minutes to read the Forum Rules about thread titles, and then edit yours to make it descriptive of your problem.

    In addition, please change the quote tags to Code Tags.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-07-2008
    Location
    Canada
    Posts
    3
    Sorry mod, it's fixed now

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Try this:
    Please Login or Register  to view this content.
    For example, =StrSort2("06, 01, 08, 01", TRUE) returns "01,06,08"
    Last edited by shg; 12-07-2008 at 06:00 PM.

  5. #5
    Registered User
    Join Date
    12-07-2008
    Location
    Canada
    Posts
    3
    Actually works, thank you very much shg

+ 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