+ Reply to Thread
Results 1 to 3 of 3

Auto increase quote number

  1. #1
    Registered User
    Join Date
    05-01-2015
    Location
    Markham
    MS-Off Ver
    207
    Posts
    2

    Auto increase quote number

    Hi,

    I have a quotation form that will be used by multiple users and I am looking for a way to increase the quote number by 1 each time it is opened. I want the user to be able to create a new quotation and save it, but without saving over the master file.


    Template - Quotation.xlsx

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Auto increase quote number

    1) To open a file and not really be opening the original file, save it as an xltm (macro enabled template). Quotation.xltm

    2) Your users must create a shortcut link to the template. When they open that file via this shortcut, Excel automatically creates a copy of the file, forcing the user to save it with a unique name and leaving the original file intact.

    3) The template will have a Workbook_Open event that triggers when it is opened to check if the QUOTE number cell has been filled in, this is done by using a specific cell as a check cell, for instance cell AA1 must be empty for the macro to run. New quotes will be empty in AA1, so it will then secretly open the original template in the background and increment the number for the next user.

    The entire method is demonstrated here. The sample file on that page is an xlt for Excel 2003, use xltm for 2007 and beyond.
    Last edited by JBeaucaire; 12-26-2019 at 04:06 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-01-2015
    Location
    Markham
    MS-Off Ver
    207
    Posts
    2

    Re: Auto increase quote number

    Thank you! I will try this out

+ 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] last stock quote how much and store number
    By makinmomb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-22-2015, 12:40 PM
  2. [SOLVED] Need to increase/decrease 2 numbers(a whole number and a %) dependent on a goal number
    By brianlross in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-19-2015, 02:28 PM
  3. Create a new quote number
    By boothy79 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2013, 01:55 AM
  4. Auto increase number and save as macro
    By SPet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2013, 01:07 PM
  5. Replies: 3
    Last Post: 09-18-2012, 01:01 AM
  6. Private message auto quote
    By Kyle123 in forum Suggestions for Improvement
    Replies: 9
    Last Post: 08-16-2012, 01:45 PM
  7. Replies: 0
    Last Post: 01-10-2012, 03:48 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