I have been asked to build a spread sheet to collect data. Sheet1 " collection form" this is where the use enters the data they are collecting.
Sheet2 "Report" is where the data needs to be stored after collecting.
Goal is to take the relevant data from non contiguous cells in sheet1 "collection form" and place them all in the first empty row in sheet2 Report.
and clear the data from the collection sheet so it can be re-entered for the next row in sheet2. Preferably using a submit button.
Example. Click submit button and
Cells B2, B3, K2, A12, A19, A26, A33, A40, B7:B11, B14:B18, B21:B25, B28:B32, B35:30, from work sheet1 "data colletion" Copy to
A2:AF2
In ranges B7:B11, B14:B18, B21:B25, B28:B32, B35:30, there may be empty cells I would not want them copied to sheet2
Each of the cells have a calculation formula that I do not want to copy to sheet2
Once all is copied I would like to have all the cell be cleared of values but not formulas.
Then they can re-enter the information hit the submit button again and have it repeat the operation and place the new information on the next empty row in sheet2.
I am new to VBA I have been able to get the the cells to copy into a new row but I have had to right a separate code for each cell and when there is empty cell above the row is puts the information for that cell above the rest of the information being place in that row.
Thank you for taking the time to read my long explanation
Sheet2 "Report" is where the data needs to be stored after collecting.
Goal is to take the relevant data from non contiguous cells in sheet1 "collection form" and place them all in the first empty row in sheet2 Report.
and clear the data from the collection sheet so it can be re-entered for the next row in sheet2. Preferably using a submit button.
Example. Click submit button and
Cells B2, B3, K2, A12, A19, A26, A33, A40, B7:B11, B14:B18, B21:B25, B28:B32, B35:30, from work sheet1 "data colletion" Copy to
A2:AF2
In ranges B7:B11, B14:B18, B21:B25, B28:B32, B35:30, there may be empty cells I would not want them copied to sheet2
Each of the cells have a calculation formula that I do not want to copy to sheet2
Once all is copied I would like to have all the cell be cleared of values but not formulas.
Then they can re-enter the information hit the submit button again and have it repeat the operation and place the new information on the next empty row in sheet2.
I am new to VBA I have been able to get the the cells to copy into a new row but I have had to right a separate code for each cell and when there is empty cell above the row is puts the information for that cell above the rest of the information being place in that row.
Thank you for taking the time to read my long explanation