+ Reply to Thread
Results 1 to 2 of 2

Change number every time file is opened

  1. #1
    Registered User
    Join Date
    09-19-2015
    Location
    Dubai, UAE
    MS-Off Ver
    2007
    Posts
    1

    Question Change number every time file is opened

    Hi. I'm building an invoice template.One of the functionalities required is that whenever the template is opened, the serial number should be higher than earlier. Example: When I close the file, it is INV#111. Now when I reopen it, it should show INV#112.
    How can this be achieved?

  2. #2
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Change number every time file is opened

    Can be done with VBA. Put this code under "This Workbook" and it will increase the counter by 1 every time the file is opened. Modify it for the invoice number.

    Please Login or Register  to view this content.

+ 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] Time between file opened and file closed?
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-24-2015, 10:26 AM
  2. [SOLVED] How to see time between file opened and file closed?
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-24-2015, 08:06 AM
  3. [SOLVED] why does an Excel email attachment change file name when opened.
    By tpayne in forum Excel General
    Replies: 2
    Last Post: 10-29-2014, 07:45 AM
  4. Progressive number when the file is opened
    By kateridleycontini in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-22-2013, 04:56 PM
  5. How to set a Global Macros so that it gets opened every time an excel file is opened?
    By pericopericone in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2013, 05:53 AM
  6. How Change the Date \ Time Stamp of a file to a number ? (EXCEL VBA)
    By nawaralobaidi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2012, 12:23 PM
  7. Generating consecutive number every time a file is opened
    By Glio in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-26-2008, 10:26 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