+ Reply to Thread
Results 1 to 4 of 4

How to create macro that adds value to cell and create save button.

  1. #1
    Registered User
    Join Date
    08-01-2019
    Location
    Tallinn, Estonia
    MS-Off Ver
    Professional Plus 2016
    Posts
    2

    How to create macro that adds value to cell and create save button.

    I have an invoice file and I would like to add two things:
    1. When the file is opened then the invoice number (in certain cell) increases by one and instantly saves the file (so when the user opens the file next time it increases again and so on).
    2. A button that saves the file and uses invoice number as file name (user adds data that they need and now they click "Confirm" button that saves the file as new file and adds invoice number as its name).

    The file will be used by companys sales person who only opens the main file to create a new bill.

    Can someone please help me with this?

    Thank you!

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: How to create macro that adds value to cell and create save button.

    Possibly by adding a worksheet to your invoice file to record the invoice number in a running column each time a new invoice file is created. This could then be accessed whenever the file is opened.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-01-2019
    Location
    Tallinn, Estonia
    MS-Off Ver
    Professional Plus 2016
    Posts
    2

    Re: How to create macro that adds value to cell and create save button.

    Right now I have this code to inrease invoice number and automatically save the file:

    Please Login or Register  to view this content.
    This seems to work so far but now I would like to add a button that saves the file as a new file and the name of the file should come from a certain column. Anyone have any ideas?

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: How to create macro that adds value to cell and create save button.

    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] How to: Create button that adds +1 to A1 field each time it's clicked.
    By 100n3y in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2015, 09:28 AM
  2. [SOLVED] Button to do a Save As using cell contents to create the file name?
    By OmegaSea in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2015, 10:05 AM
  3. [SOLVED] Create a button that adds current time into cell
    By miah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2015, 04:35 AM
  4. Replies: 1
    Last Post: 07-23-2014, 04:33 AM
  5. [SOLVED] Create button to save cell data to workbook header
    By tailz in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-28-2013, 07:06 AM
  6. create save button
    By roofi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2013, 10:05 AM
  7. How to create a save button with vba
    By Rob1236 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-11-2013, 02:56 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