+ Reply to Thread
Results 1 to 3 of 3

how to generate serial number on a textbox in userform

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    uae
    MS-Off Ver
    Excel 2010
    Posts
    2

    how to generate serial number on a textbox in userform

    Hi,

    Good day,

    I have an excel vba userform program, i was able to generate a serial number but it doesnt work well. When i click add new button the serial number is not populating. And when i open the userform again same serial number is generating so im having a duplicate serial number.

    Is there any way to fix this?

    Here's my code:

    Please Login or Register  to view this content.

    Thanks in advance,
    Last edited by Leith Ross; 07-16-2013 at 03:43 AM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: how to generate serial number on a textbox in userform

    Hello minionrush,

    Welcome to the Forum!

    You have disabled the TextBox. Once a control is disabled it will no longer respond to input from either the keyboard or mouse.

    If you want to prevent the user from altering the TextBox contents then set the Locked to True. The user can not change the TextBox but you can through code.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-16-2013
    Location
    uae
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: how to generate serial number on a textbox in userform

    Hi Leith,

    Thank you for the response. but the serial number is not changing when i click add new.

+ 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] extract serial number of a date from a textbox input
    By rsbuslon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-20-2013, 02:19 AM
  2. 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
  3. 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
  4. 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
  5. Finding a serial number in a list of serial numbers
    By zocoloco in forum Excel General
    Replies: 2
    Last Post: 02-04-2009, 05:20 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