+ Reply to Thread
Results 1 to 4 of 4

Add Value's in a new row in a table with a button

  1. #1
    Registered User
    Join Date
    05-21-2021
    Location
    Herentals, Belgium
    MS-Off Ver
    Office 356
    Posts
    2

    Add Value's in a new row in a table with a button

    Hey!

    I am working on a stockmanagement system in Excel.
    I worked out most of it but to make it as easy to manage as possible i would like to work out the following:

    I want to put values in some cells (darker green row).
    Then with 3 different buttons (Buy, Sell, Reserve) I want to transfer the values into the right table in a new row.

    So if i fill in all the values and I press buy the values are put in a table called BUY, same thing for Sell or Reserve.
    With some simple formula's i get a overview table which gives me a insight in my stock per material.

    After the "transfer" of the values the cells from which everything was copied (on top of the sheet) should be emptied so it is always clear where to put the next value.

    I have put some snapshots of my file in attachment to make it more clear.

    I am not very good with VBA so thats why I am here asking for your help
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by saschah; 05-21-2021 at 05:09 AM.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Add Value's in a new row in a table with a button

    first observation - when working with tables do not extend them below or beyond the data (i.e. no blank rows) - tables grow dynamically with data entry.
    to save us the time replicating your sheets please upload your workbook - see big yellow banner how to.
    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    05-21-2021
    Location
    Herentals, Belgium
    MS-Off Ver
    Office 356
    Posts
    2

    Re: Add Value's in a new row in a table with a button

    Quote Originally Posted by torachan View Post
    first observation - when working with tables do not extend them below or beyond the data (i.e. no blank rows) - tables grow dynamically with data entry.
    to save us the time replicating your sheets please upload your workbook - see big yellow banner how to.
    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Thank you for your help, I've added the workbook.
    The link between the tables is now destroyed but its mainly about the action when you press the button.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Add Value's in a new row in a table with a button

    There is a macro on the 'BUY' button.
    To make the code shorter I have reordered the the columns to align with the header order.
    The code for the other buttons would follow a similar pattern, to keep everything common I have used table data handling throughout.
    The tables are named ("Tabel1" , "Tabel2" etc., .... "Tabel5").
    Any queries post back on this site.
    torachan.
    Attached Files Attached Files

+ 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. Replies: 0
    Last Post: 08-31-2018, 08:21 AM
  2. [SOLVED] Copy table column "and" macro button over to right with each push of macro button
    By xlyfe in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2018, 04:24 PM
  3. VBA Code Button that runs through Date list Table and Copies onto another table
    By Bisky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2018, 10:26 AM
  4. Button to add or remove table filters and button to refresh table
    By cmorten82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2015, 11:26 AM
  5. cut cells and paste to table on separate worksheet/table on button click
    By mustang__1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-23-2014, 11:57 AM
  6. [SOLVED] How to have a button on a table get added with each new table row
    By ptmald in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-08-2013, 01:36 PM
  7. Create a new table from the main table when user press Enter button
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2010, 05:08 AM

Tags for this Thread

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