I am new to macros/VBA and I am trying to get a solution for mundane copy and paste from and to different worksheets in an excel file. This is to streamline making estimates and Invoices for an electrical contracting company.
In the excel file (see link) I want to have a button in the Materials tab in row J that is clicked that will put A4:D4 in to the next available line on the Inv tab (a quantity is entered first). Then the quantity entered is removed.
For example- in Materials tab quantity 12 is entered on A7, button on J7 is clicked which enters values A7:D7 into next available line (say A23:d23 in linked file) and also removes the quantity 12 from A7 in the Materials tab.
Ideally it would have buttons for adding from materials tab to Inv or Estimate. From Address to Inv, Estimate, and envelope. From tax to inv.
If someone can help with the macro code and how it would be changed for different cells/tabs I could do the rest.
Thank you for any help.
https://www.dropbox.com/s/ynas6zpyjttp4cw/Company test.xlsm
In the excel file (see link) I want to have a button in the Materials tab in row J that is clicked that will put A4:D4 in to the next available line on the Inv tab (a quantity is entered first). Then the quantity entered is removed.
For example- in Materials tab quantity 12 is entered on A7, button on J7 is clicked which enters values A7:D7 into next available line (say A23:d23 in linked file) and also removes the quantity 12 from A7 in the Materials tab.
Ideally it would have buttons for adding from materials tab to Inv or Estimate. From Address to Inv, Estimate, and envelope. From tax to inv.
If someone can help with the macro code and how it would be changed for different cells/tabs I could do the rest.
Thank you for any help.
https://www.dropbox.com/s/ynas6zpyjttp4cw/Company test.xlsm