+ Reply to Thread
Results 1 to 4 of 4

help with auto number on userform

  1. #1
    Registered User
    Join Date
    09-06-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    3

    help with auto number on userform

    Hi,

    after days and days of research i have hit a stumbling block with my code and i hope you can spare a minute to help me.

    i have a workbook with two worksheets, Documents and Workings. The user can fill in the userform i have created so that it fills in the worksheet in documents accordingly.

    My code is as folows:

    Please Login or Register  to view this content.
    What i am trying to achieve is auto numbering in column B in Documents with D1, D2, etc.

    Each time the userform is opened or restarted or populated by a the command button it populates the D1, D2 etc textbox on the userform and then the form submits the alll the data to the next free row in the worksheet.

    As you will see i have with my very limited knowledge created a work round utilising the workings worksheet to populate column L and then transfers this to the userform. This code relys on the cell above A2 to be a number.

    Is it possible to dispense with my workround and get the userform to populate the textbox automatically as it reads from column B in the documents worksheet, collects the last D number used and allocates the next one, if the form is blank then it should allocate D1 in the first instance.

    I do hope i have made some sense and that this last hurdle can be overcome, thank you in anticipation,

    regards

    Lee
    Attached Files Attached Files
    Last edited by royUK; 09-07-2010 at 03:29 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: help with auto number on userform

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    You missed the / from the last code tag. Edited for you
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-06-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: help with auto number on userform

    sorry about that it was my first post

  4. #4
    Registered User
    Join Date
    09-06-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: help with auto number on userform

    this has been now solved thank you in any case
    http://www.mrexcel.com/forum/showthr...07#post2436407

+ 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