+ Reply to Thread
Results 1 to 3 of 3

VBA Auto increment of alphanumeric values

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    PEI, Canada
    MS-Off Ver
    2007
    Posts
    2

    VBA Auto increment of alphanumeric values

    Hi,

    Sorry for the long post.

    I need to automatically generate sequences given start and end values.

    For example, a range can be C001 to C040 and the following code works just fine:
    Please Login or Register  to view this content.
    But, if the sequence is C00A to C00Z or AFLF to AFPX, the code will not work.

    Can someone help? Thank you in advance. You may have noticed, I am a newbie

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11)
    Posts
    52,093

    Re: Auto increment of alphanumeric values

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. 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, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then 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

    (Note: this change is not optional. As you are new here, I have done it for you this time.)

    Thread moved to VBA section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    06-25-2014
    Location
    PEI, Canada
    MS-Off Ver
    2007
    Posts
    2

    Re: Auto increment of alphanumeric values

    Thank you, Ali. I will keep that rule in mind.

+ 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. [SOLVED] Increment Alphanumeric List
    By frekels21 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-27-2017, 10:00 PM
  2. [SOLVED] Can't increment Alphanumeric string by one
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2016, 12:08 AM
  3. [SOLVED] Alphanumeric Increment based on previous row value
    By JusticeEmpire in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-06-2015, 01:14 PM
  4. how to auto increment cell values along with text
    By sateeshkumarj in forum Excel General
    Replies: 1
    Last Post: 01-07-2014, 09:46 AM
  5. Excel VBA Code for Auto Increment Values
    By fakehealer in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-27-2013, 03:46 AM
  6. Replicate and increment alphanumeric keywords?
    By toolsavvy in forum Excel General
    Replies: 7
    Last Post: 12-16-2007, 03:02 AM
  7. Auto-increment cell values by one
    By olivergleave@gmail.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-30-2005, 12:10 PM

Tags for this Thread

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