+ Reply to Thread
Results 1 to 2 of 2

Incrementing Cell Numbers

  1. #1
    Lance W. Grimes
    Guest

    Incrementing Cell Numbers

    All:

    I have created an excel "Workorder" form for our employees to write in what
    machine they are working on, what parts they used, and how long they spent
    on the repair...

    The problem... I need to print out hundreds of these forms for the men to
    use, and each copy of the form needs to have an unique number.

    Is there a way to program a cell to automatically increment by 1 every time
    it is printed? Again, I need to print hundreds at a time, and I need them
    to automatically increment by 1.

    TIA,
    Lance



  2. #2
    Jason Morin
    Guest

    Re: Incrementing Cell Numbers

    Place this in ThisWorkbook module:

    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    With Sheets("Sheet1")
    .[A1].Value = .[A1].Value + 1
    End With
    End Sub

    ---
    HTH
    Jason
    Atlanta, GA


    >-----Original Message-----
    >All:
    >
    >I have created an excel "Workorder" form for our

    employees to write in what
    >machine they are working on, what parts they used, and

    how long they spent
    >on the repair...
    >
    >The problem... I need to print out hundreds of these

    forms for the men to
    >use, and each copy of the form needs to have an unique

    number.
    >
    >Is there a way to program a cell to automatically

    increment by 1 every time
    >it is printed? Again, I need to print hundreds at a

    time, and I need them
    >to automatically increment by 1.
    >
    >TIA,
    >Lance
    >
    >
    >.
    >


+ 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