+ Reply to Thread
Results 1 to 1 of 1

MACRO to generate serial number in shared workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    10-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    1

    MACRO to generate serial number in shared workbook

    Hi, I'm really new in MACRO and would appreciate the help.

    I have created a shared workbook, to be update simultaneously by 10 people.

    I would like to generate the unique serial number using the following conditions.

    Type (if received date is in year 2014)
    RFQ - serial number should start with RFQ14/1001
    WOC - serial number should start with WOC14/1001
    TAD- serial number should start with TAD14/1001
    SAD- serial number should start with SAD14/1001

    Type (if received date is in year 2015)
    RFQ - serial number should start with RFQ15/1001
    WOC - serial number should start with WOC15/1001
    TAD- serial number should start with TAD15/1001
    SAD- serial number should start with SAD15/1001

    If I select the type as "RFQ" and the received date is in year 2014, once i click the Command Button then it show generate serial no "RFQ14/1001".
    For the next line item, if i select RFQ again and received date is in year 2014, then the next serial no should be RFQ14/1002 etc.

    The result in the tabular format should be as follows:
    Type Serial no Received Date
    RFQ RFQ14/1001 01/01/2014
    WOC WOC14/1001 02/04/2014
    RFQ RFQ14/1002 06/06/2014
    SAD SAD14/1001 10/08/2014
    SAD SAD14/1002 14/10/2014
    WOC WOC14/1002 18/12/2014
    RFQ RFQ14/1003 21/02/2014
    RFQ RFQ15/1001 05/05/2015
    WOC WOC15/1001 05/07/2015
    RFQ RFQ15/1002 05/09/2015
    SAD SAD15/1001 05/11/2015

    Greatly appreciate your help. Thanks you.
    Last edited by mouzie; 10-30-2014 at 11:36 PM.

+ 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. Macro to generate a unique number on a shared workbook.
    By adil.master in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-30-2013, 04:22 PM
  2. how to generate serial number on a textbox in userform
    By minionrush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2013, 05:12 AM
  3. Need to generate a random serial number that automatically populates the transmittal sheet
    By chriscole412 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-15-2012, 12:52 PM
  4. Need macro/script to generate serial number labels
    By c.young in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2012, 06:18 PM
  5. How do I generate a sequential serial number every time I tab to a new line?
    By asbo604 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-28-2009, 05:17 AM

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