I'm looking to create a 5-digit random but unique alphanumeric code in excel. I'm trying to keep the format of letter, number, letter, number, letter. Examples: d5s3e, h2x0f, j5n9n, d0a6z, y8c1p, q6z3b. I'm trying to stay away from the RANDBETWEEN function but am not sure how to craft a macro or something in the VBA that might get me what I want. The biggest problems is creating the random codes but not creating any duplicates. Any help would be awesome!
Bookmarks