+ Reply to Thread
Results 1 to 6 of 6

Need macro to generate a list of alphanumeric chars

  1. #1
    Registered User
    Join Date
    11-26-2016
    Location
    Idaho
    MS-Off Ver
    16
    Posts
    3

    Need macro to generate a list of alphanumeric chars

    Hi,

    I need a macro that will generate (in column A), a non-duplicate list of alphanumeric characters of length 3. In other words, a list that starts with "aaa" in cell A1, and ends with "999" in cell A238,328. Each character can be numeric (0 - 9), lowercase alpha, or uppercase alpha.

    I want to do this in an orderly fashion, not by generating random strings.

    Can someone help me?

    Thanks,

    Mark

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,438

    Re: Need macro to generate a list of alphanumeric chars

    With this syntax :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,977

    Re: Need macro to generate a list of alphanumeric chars

    [Here is the code. Be aware this generates a quarter of a million rows.]<--I see you already knew this

    You must format column A as Text first to preserve the strings that are all numeric and start with 0.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    11-26-2016
    Location
    Idaho
    MS-Off Ver
    16
    Posts
    3

    Re: Need macro to generate a list of alphanumeric chars

    Thanks Logit and Jeff! I knew that there had to be a relatively straightforward way of doing this.

    Thanks again!

    Mark
    Last edited by MagPower; 11-26-2016 at 11:47 AM.

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,438

    Re: Need macro to generate a list of alphanumeric chars

    Your welcome
    Thanks for the add rep.
    Last edited by Logit; 11-26-2016 at 12:26 PM.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,977

    Re: Need macro to generate a list of alphanumeric chars

    You're welcome and thanks for the rep!

+ 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. Replies: 3
    Last Post: 09-22-2016, 09:40 AM
  2. Generate random Alphanumeric with two letters and three numbers
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2015, 09:19 PM
  3. [SOLVED] Creating a formula to generate an alphanumeric code
    By JuauM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2015, 05:17 AM
  4. How to generate unique random alphanumeric 32 character codes?
    By JussiR in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-21-2014, 06:30 AM
  5. [SOLVED] Lookup Last Value then Generate Next Alphanumeric Value
    By jeversf in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2014, 10:35 PM
  6. Find alpha chars in alphanumeric string
    By gototcm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-19-2014, 04:13 PM
  7. Need macro to generate list
    By Kristin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2006, 12:35 PM

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