+ Reply to Thread
Results 1 to 6 of 6

Need help Converting Code to Read Alpha Numeric Legends instead of single character legend

  1. #1
    Forum Contributor
    Join Date
    01-25-2009
    Location
    Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    177

    Need help Converting Code to Read Alpha Numeric Legends instead of single character legend

    This code below automates a process for me with single digit characters 0 through 9 and A through Z legends. I would now like it to work with Legends which are Just Letters Alone or Letters accompanied by a number. So For Example Legend "OVRV1" in the current code would read the legends as O, V, R, V, 1. The way the new code would behave would read it as O,V,R, V1
    Legends are an alphabet letter alone or an alphabet accompanied by a letter. It should understand that V1 is not V even though V is contained in V1. Any Help Would be Great.

    Including a file below which should explain what the macro currently does and what i need it to do , this should help clear out any issues. The Code below is the original code.

    It should be noted the code pulls legends verbiage from its corresponding Legend in Column B. If the Legend has a Dash in it for example ORV-D1H the legends D,1, and H pull verbiage from the orange area and the O, R V Legends from the Light Green Area. Running the macro in the example file will clear any confusion.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by donnydorko; 12-29-2012 at 01:12 AM.

  2. #2
    Forum Contributor
    Join Date
    01-25-2009
    Location
    Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    177

    Re: Need help Converting Code to Read Alpha Numeric Legends instead of single character le

    updated my post , hopefully someone can help. Make it as clear as i could.

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Need help Converting Code to Read Alpha Numeric Legends instead of single character le

    So
    ORV2N-WABH is read as O, R, V2, N, W, A, B, H
    And
    ORVPRST-AB1H2FE is read as O, R, V, P, R, S , T, A, B1, H2, F, E?

    I feel like I am missing something,

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Need help Converting Code to Read Alpha Numeric Legends instead of single character le

    Hello donnydorko,

    I have added the macro below to the attached workbook. Check it out and let me know if anything needs adjusting.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  5. #5
    Forum Contributor
    Join Date
    01-25-2009
    Location
    Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    177

    Re: Need help Converting Code to Read Alpha Numeric Legends instead of single character le

    Works like a charm Leith Ross , can't imagine how much i appreciate it , was starting to think it was to complicated to describe but so far so good.

    + rep for sure, You always help me out!

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Need help Converting Code to Read Alpha Numeric Legends instead of single character le

    Hello donnydorko,

    Glad it works. If there is anything about the code you want explained, just ask.

+ 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