KarenBaDaren
New Member
- Joined
- Oct 12, 2015
- Messages
- 2
Greetings. I'm not a VBA expert, am used to Access but our company doesn't allow it so I'm stuck with Excel. I'm creating a checksheet for inspectors to enter data. I want the data entry fields to look exactly like the sheet that prints out from the inspection point. All of the data is entered by a technician by hand.
Let's say I have data in a worksheet named "Input", header data is stored in D5:D10. D10 indicates if there are two inspection sheets or one. If there is one, the data is entered in cells:
D11:D19 then
J11:J24 then
Q11:Q15.
Any additional cells are not required to have data entered. If D10 indicates there are TWO parts checked, in addition to the three sections above, I now have the cells:
D28:D36 then
J28:J41 then
Q28:Q32.
I want to click a simple button that says "Add this data to database." That will then copy the header and the first section of data from "Input", plus the second section of data from "Input" but ONLY if there are two parts inspected from the worksheet. Then it will past that entire group of data in a nice single row, which is the next empty row on sheet "PartsData", beginning with Column C, and clear the data on "Input" and assign it the next ID number. Column C is set up as a unique ID, and there are no problems with it either finding the next ID number, or entering that on the PartsData worksheet.
I had everything working perfectly as long as the data to be copied was in a single column, which I had previously named "Order Entry" in the name manager. As soon as I split it into essentially six sets of data (even updating the Order Entry linked cells in Name Manager), nothing works properly and only certain pieces of data are copied while others aren't copied, aren't cleared, etc.
Essentially,
D11:D19 from Input would go to the next row of PartsData, at (C13:Q13, where the number 13, as an example, would be replaced with the next empty row)
J11:J24 from Input would go to R:AE of that same row above on PartsData.
Q11:Q15 from Input would go to AF:AJ of that same row on PartsData
If Applicable,
D28:D36 from Input would go to AK:AS of that same row on PartsData
J28:J41 from Input would go to AT:BG of that same row on PartsData
Q28:Q32 from Input would go to BH:BL of that same row on PartsData
Then clear the original data on the Input worksheet.
I've just about lost my last brain cell trying to get it to work, and any help is appreciated.
Thanks so much,
Karen
Let's say I have data in a worksheet named "Input", header data is stored in D5:D10. D10 indicates if there are two inspection sheets or one. If there is one, the data is entered in cells:
D11:D19 then
J11:J24 then
Q11:Q15.
Any additional cells are not required to have data entered. If D10 indicates there are TWO parts checked, in addition to the three sections above, I now have the cells:
D28:D36 then
J28:J41 then
Q28:Q32.
I want to click a simple button that says "Add this data to database." That will then copy the header and the first section of data from "Input", plus the second section of data from "Input" but ONLY if there are two parts inspected from the worksheet. Then it will past that entire group of data in a nice single row, which is the next empty row on sheet "PartsData", beginning with Column C, and clear the data on "Input" and assign it the next ID number. Column C is set up as a unique ID, and there are no problems with it either finding the next ID number, or entering that on the PartsData worksheet.
I had everything working perfectly as long as the data to be copied was in a single column, which I had previously named "Order Entry" in the name manager. As soon as I split it into essentially six sets of data (even updating the Order Entry linked cells in Name Manager), nothing works properly and only certain pieces of data are copied while others aren't copied, aren't cleared, etc.
Essentially,
D11:D19 from Input would go to the next row of PartsData, at (C13:Q13, where the number 13, as an example, would be replaced with the next empty row)
J11:J24 from Input would go to R:AE of that same row above on PartsData.
Q11:Q15 from Input would go to AF:AJ of that same row on PartsData
If Applicable,
D28:D36 from Input would go to AK:AS of that same row on PartsData
J28:J41 from Input would go to AT:BG of that same row on PartsData
Q28:Q32 from Input would go to BH:BL of that same row on PartsData
Then clear the original data on the Input worksheet.
I've just about lost my last brain cell trying to get it to work, and any help is appreciated.
Thanks so much,
Karen