+ Reply to Thread
Results 1 to 7 of 7

automatically increment numbers every time you open the same template MSO 2013

  1. #1
    Registered User
    Join Date
    01-06-2016
    Location
    Mackay Queensland Australia
    MS-Off Ver
    2013
    Posts
    3

    automatically increment numbers every time you open the same template MSO 2013

    In Microsoft Excel 2013, I have a spreadsheet that I want to use that each time I open it, I want it to autonumber a specific cell. I want to start off using 0001 and when the spreadsheet is opened a second time, I want it to go to 0002. Is there a way to get this to occur? The sheet is saved as .xlsm if this matters.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: automatically increment numbers every time you open the same template MSO 2013

    Put this code in the Workbook Open Event in the VBE. Assume the range to update is A1. Change as needed.
    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-06-2016
    Location
    Mackay Queensland Australia
    MS-Off Ver
    2013
    Posts
    3

    Re: automatically increment numbers every time you open the same template MSO 2013

    Thanks Alan, works like a charm

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: automatically increment numbers every time you open the same template MSO 2013

    Hi Dotcommz
    Try this code in ThisWorkbook module
    Please Login or Register  to view this content.
    Last edited by YasserKhalil; 01-06-2016 at 08:42 PM.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  5. #5
    Registered User
    Join Date
    01-06-2016
    Location
    Mackay Queensland Australia
    MS-Off Ver
    2013
    Posts
    3

    Re: automatically increment numbers every time you open the same template MSO 2013

    Thanks Yasser, but Alans solution worked fine.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: automatically increment numbers every time you open the same template MSO 2013

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: automatically increment numbers every time you open the same template MSO 2013

    Hi Dotcommz
    In fact I didn't see Mr. Alan's post at first. I was working on it. It is the same approach. Just I added the format to the target cell as you need 0001 and so on
    Generall I am glad you find solution
    Thanks for the feedback.

+ 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. Automatically increment worksheet numbers
    By sdaddy in forum Excel General
    Replies: 18
    Last Post: 11-18-2015, 06:02 AM
  2. Increment a numbers every time you open a template
    By ectophob123 in forum Excel General
    Replies: 2
    Last Post: 03-20-2015, 01:22 AM
  3. have Excel 2013 automatically open as maximized window
    By bhamilton4 in forum Excel General
    Replies: 7
    Last Post: 12-27-2014, 02:13 AM
  4. Older version Macro Enabled template wont open in 2013
    By eallera in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2014, 02:51 PM
  5. [SOLVED] Automatically Increment Numbers Between Worksheets
    By shawnashawna in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-11-2013, 11:01 PM
  6. Automatically increment numbers on enter
    By barnicoate in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-18-2011, 09:11 AM
  7. automatically increment numbers every time you open the same template
    By Cryoman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2009, 01:13 PM

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