+ Reply to Thread
Results 1 to 4 of 4

Generating alphanumeric id

  1. #1
    Registered User
    Join Date
    04-11-2016
    Location
    Ghana
    MS-Off Ver
    2007
    Posts
    32

    Post Generating alphanumeric id

    I SAW THIS CODES AND COPIED IT. IT WORKS WELL BUT THE PROBLEM IS IT DOES NOT MOVE TO THE NEXT CELL OF A3. IT ONLY STAYS AT A2 AND KEEPS ON CHANGING THE ID NUMBERS WHENEVER I POST DATA TO THE NEXT ROW OF B3. WILL BE GLAD IF YOU CAN HELP ME MODIFY IT AS WELL
    Dim id As String
    Dim i As Integer
    Randomize
    For i = 1 To 5
    If Int((2 * Rnd) + 1) = 1 Then
    id = id & Chr(Int(26 * Rnd + 65))
    Else
    id = id & Int(10 * Rnd)
    End If
    Next i
    ActiveSheet.Range("A2").Formula = id
    End With

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Generating alphanumeric id

    I've seen this problem before. If you look on your keyboard, usually Top Right, you will see three LED lights. If you see the under under the 'A' icon is lit, you can solve this problem by pressing the "Caps Lock" button on the far left of the keyboard, generally it is under the Tab key

    Hope this helps!
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Generating alphanumeric id

    Also; you already posted this, and it was solved.

    http://www.excelforum.com/excel-prog...unique-id.html

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Generating alphanumeric id

    Please don't type in ALL CAPITAL LETTERS. It is considered to be "shouting".

    And note that your post does not comply with forum rules.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here


    Try:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. generating alphanumeric code
    By Pankaj51 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-13-2015, 07:46 AM
  2. Replies: 2
    Last Post: 11-06-2014, 05:07 PM
  3. Generating random number string based on Alphanumeric String
    By ridemeve in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-15-2014, 04:56 PM
  4. Generating a 4 part Alphanumeric Sequence
    By Label-makers in forum Excel General
    Replies: 20
    Last Post: 06-06-2012, 07:54 PM
  5. Replies: 3
    Last Post: 04-23-2012, 10:18 AM
  6. Replies: 0
    Last Post: 04-20-2012, 06:55 AM
  7. Generating AlphaNumeric SKU by dropdown list
    By kebgx6 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-22-2010, 12:36 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