+ Reply to Thread
Results 1 to 2 of 2

Each row to contain a unique ID (via VBA)

  1. #1
    Registered User
    Join Date
    02-08-2009
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    3

    Each row to contain a unique ID (via VBA)

    Hi

    I am a VBA novice. So apologies in advance if the question is an easy one.

    I have some code (see below) which gives me a unique id in column A for each row. The format is yymm-0. Currently the numbering portion does not reset, it just carries on consecutively. I would like it to restart when the month changes.

    So for May I would like the numbering to go 0905-1, 0905-2... until June, when it would reset and go as follows 0906-1, 0906-2.

    Is anyone able to help?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Each row to contain a unique ID (via VBA)

    Hi

    Try this

    Please Login or Register  to view this content.
    rylo

+ 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