+ Reply to Thread
Results 1 to 3 of 3

autonumber in excel userform

Hybrid View

  1. #1
    Registered User
    Join Date
    06-03-2011
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    46

    autonumber in excel userform

    I have a useform that I use to add data in sheet. What I would like to do is add an autonumber in my userform.

    In attachments is my UserFrom

    Please Edit and fix My code.
    Thank You
    Attached Files Attached Files
    Last edited by johan12; 10-09-2011 at 10:35 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: autonumber in excel userform

    You could add this line to the userform intialize event
    Nr.Text = CStr(Application.Max(Sheet1.Columns(1)) + 1)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    06-03-2011
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    46

    [SOLVED] autonumber in excel userform

    Quote Originally Posted by mikerickson View Post
    You could add this line to the userform intialize event
    Nr.Text = CStr(Application.Max(Sheet1.Columns(1)) + 1)

    Thank you very much for the help - Works Excellent . THANKS again
    Last edited by johan12; 10-09-2011 at 10:32 PM.

+ 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