+ Reply to Thread
Results 1 to 3 of 3

How to set control # in excel automatically?

  1. #1
    Registered User
    Join Date
    01-28-2009
    Location
    Manila,Philippines
    MS-Off Ver
    Excel 2003
    Posts
    5

    How to set control # in excel automatically?

    Dear all,

    I created a form in excel that has a control number.I want to create a formula that will automatically adds a series number everytime I will open the form.
    e.g. I started at 001, then next time that I will open the form the series will be 002.

    Is there a way to do it?please help.



    Kind regards,
    Garacious

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to set control # in excel automatically?

    increment a cell on close and use that value when you open perhaps
    i dont know if you can hold a value in vba once you exit the sub.
    Last edited by martindwilson; 06-22-2009 at 04:29 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-07-2009
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: How to set control # in excel automatically?

    If you don't want to modify the excel file you can use a txt (dat, tmp ...) file in your sistem temp folder (or in any folder you want) to read/write the #.
    Last edited by bejan; 06-22-2009 at 05:00 AM.

+ 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