+ Reply to Thread
Results 1 to 2 of 2

Generate and display unique AutoNo. in Excel Userform and link to worksheet.

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    1

    Generate and display unique AutoNo. in Excel Userform and link to worksheet.

    Hi

    Im new to VBA. I would like Userform to auto generate a unique number and every time the form is open, it automatically increases its number before even updating records or click any buttons. (example, CRUINT000001...CRUINT000002...)

    This Auto generated number will then be auto added to coloumn A named "Ref" in the worksheet. Im not sure what tool to use, label, textbox or commandbutton. Please help

    Below are the codes I've created so far.

    Thanks
    Lizah

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Generate and display unique AutoNo. in Excel Userform and link to worksheet.

    Hi

    I have this code. I m using a form. Please check the code:

    autogeneratenums.xlsm
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Registered User
    Join Date
    09-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Generate and display unique AutoNo. in Excel Userform and link to worksheet.

    Hi jraj,

    Is there a way that the generated number be displayed on the Userform as well so that it is easily retrieve by other users instead of looking into the excel sheet itself?

    Thanks

+ 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