Consulting

Results 1 to 2 of 2

Thread: Add new project number to user form

  1. #1
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location

    Add new project number to user form

    I have a user form that people use to populate data into a sheet. What I want to happen is for the next project number to automatically populate when the form opens. The projects are numbered starting with 1 in column A. So if the user opens the form and there are already 10 projects on the sheet the form should pop up with 11 in the Project ID field. Just not sure on how to accomplish this.
    Peace of mind is found in some of the strangest places.

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    In the Initialize or Activate event of the form, you can populate the control using
    Application.Max(Sheets("whatever").Range("A:A")) + 1
    Be as you wish to seem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •