+ Reply to Thread
Results 1 to 4 of 4

Generate Sequential Numbering based on Combobox selection

  1. #1
    Registered User
    Join Date
    07-14-2015
    Location
    Virginia
    MS-Off Ver
    2007
    Posts
    3

    Generate Sequential Numbering based on Combobox selection

    Hello all -

    I am working on a Multipage Userform that populates several report's that are accessed via a Dashboard. Here is my quandary:

    When the end user logs a new incoming submittal, the submittal number needs to auto generate, based on the option selected from the combo box. I have worked at this problem for 3 days now and still can not get it to work. These are the 'players':

    projnum is named range on Worksheet "DASH"
    subpull is a named range on Worksheet "SubmittalLog"
    cboDCode is a combo box that selects disciplines
    cboSubType is a combo box that selects either "RFI" or "Submittal"
    txtSubNum is the text box that should be auto populated with the generated number.
    cmdSubGen is the command button that is clicked to generate the number.

    I need for the number generated to be formatted as such - projnum - cboDCode - cboSubType - 000generatednumber

    I have code written to locate and find the next available row to populate this number along with other information on this page of the user form. I have ran it with out the number and it works perfect. Now I need it to run with the number included.

    I am unable to upload spreadsheets or code due to the companies confidentiality rules.

    Thank you for any help you can provide.
    H.B.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,192

    Re: Generate Sequential Numbering based on Combobox selection

    Im still unclear where the Gen# comes from...

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-14-2015
    Location
    Virginia
    MS-Off Ver
    2007
    Posts
    3

    Re: Generate Sequential Numbering based on Combobox selection

    ranman256

    Thank you for your reply. I apologize for not saying where the gen# comes from. The gen# will be located in column B (the subpull range)once the user hits finish and the data pushes out to the form. The first number will be 001, from there the code should look at subpull and generate the next number.

    I am going to go try the code now. It looks like I may have been over thinking this.

    H.B.

  4. #4
    Registered User
    Join Date
    07-14-2015
    Location
    Virginia
    MS-Off Ver
    2007
    Posts
    3

    Re: Generate Sequential Numbering based on Combobox selection

    Ranman256 -

    Works like a charm. I need to modify it so that it will pull the project number from the worksheet, but other than that, this is great! Thank you. I will post the revised code once I finish.

    HB

+ 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] Change next ComboBox list based on previous ComboBox selection
    By SteveTheFish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2015, 11:23 PM
  2. Populating Combobox based on Combobox selection from EXCEL worksheet
    By JChaney17 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-04-2014, 08:14 AM
  3. [SOLVED] Generate sequential numbering when cell values are larger than
    By Carlsbergen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2014, 07:21 AM
  4. Userform Combobox to populate based on selection in another combobox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 03:34 PM
  5. [SOLVED] fill combobox selection based on a selection from the first combobox
    By Monza in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-14-2013, 07:34 PM
  6. [SOLVED] Generate a range of sequential alpha numeric codes based on a from and to value
    By kenny.fsw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2013, 09:53 AM
  7. Generate multiple OptionButtons with combobox selection
    By fmluder93 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2013, 05:20 AM

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