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

Saschah

New Member
Joined
Sep 13, 2017
Messages
27
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 value in certain cells on the top of the sheet.
With 3 different buttons you can put these at the end of 3 different tables.

So, button 1 puts the vallues at the bottom of Table 1, button 2 in table 2 and 3 in table 3.
(Table 1=Incomming material; Table 2= Reserved material; Table 3= Sold material)
The values from these tables are then linked to a 4th table which gives a summary of the free stock.

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 am not very good with VBA so thats why I am here asking for your help :)

Thank you guys!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
When looking for help its best to always be specific.
Like you said:
I want to put value in certain cells on the top of the sheet.
Certain cell is not specific.
And when referring to Tables we need to know the name of the sheet and the Table name.
Now you said:
(Table 1=Incomming material
Did this mean the Table name is Table1 or Incomming materials
And is this only a one column Table if not enter value into what column of the Table?
Refer to Table columns as column 1 or column 2 not column A or column B which are references to sheet columns not Table columns. A Table is a range on a worksheet.
 
Upvote 0
When looking for help its best to always be specific.
Like you said:
I want to put value in certain cells on the top of the sheet.
Certain cell is not specific.
And when referring to Tables we need to know the name of the sheet and the Table name.
Now you said:
(Table 1=Incomming material
Did this mean the Table name is Table1 or Incomming materials
And is this only a one column Table if not enter value into what column of the Table?
Refer to Table columns as column 1 or column 2 not column A or column B which are references to sheet columns not Table columns. A Table is a range on a worksheet.
Hey,
Okay, so i made some snapshots of my file so it might be more clear to you.

The BUY, Reserve and Sell tables are the ones where the data should be inserted.
The Overview table takes all the data from each table and adds all the amounts of the same type of material. Like this I can keep track of the free stock of these materials.
Free stock = Bought materials which is not sold or reserved.

Also like this I can keep track of my buying and selling history

So I want to put some value's (text or numbers) in the input fields.
When I push the BUY button the values should go in the BUY table in the columns with the samen name, except the "AMOUNT" value should go in BOUGHT.
If SELL is pressed, the same should happen but for the SELL table and Amount values should go in SOLD
After pressing the button the input fields should empty so you know the data are inserted and you can't accidently add the data twice.


One thing I was thinking about is when material is reserved, it will eventually get sold, I am not really sure how to get the values from the RESERVE table to the SELL table easely. maybe by putting in negative values and reserving them?

I hope it is more clear now, if not let me know.
Thank you!
 

Attachments

  • INPUT & Table overview.PNG
    INPUT & Table overview.PNG
    33.3 KB · Views: 82
  • Table BUY.PNG
    Table BUY.PNG
    19 KB · Views: 78
  • Table Reserve.PNG
    Table Reserve.PNG
    13.6 KB · Views: 57
  • Table Sell.PNG
    Table Sell.PNG
    12.8 KB · Views: 73
Upvote 0
When looking for help its best to always be specific.
Like you said:
I want to put value in certain cells on the top of the sheet.
Certain cell is not specific.
And when referring to Tables we need to know the name of the sheet and the Table name.
Now you said:
(Table 1=Incomming material
Did this mean the Table name is Table1 or Incomming materials
And is this only a one column Table if not enter value into what column of the Table?
Refer to Table columns as column 1 or column 2 not column A or column B which are references to sheet columns not Table columns. A Table is a range on a worksheet.
Did I make it more clear to you or do you need some extra information?
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,179
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top