yes that row changes each time, ie the first production run record would have reference 1, the second submit of production data would have ref 2 etc
the below was created in VBA. the fist part finds the first empty cell and pastes the data from pre-production into the database spreadsheet
for ease i have removed 95% of the coding to give chance to read all on one screen!
i am looking at doing exactly the same function with the post-production details, without finding the next empty cell, instead pasting to a specific row as determined by the operator
(ie post production form has "enter DB ref No here" cell which i would like the macro to select, find that value in column A, activate that cell, then take the values from post-production worksheet and paste using similiar coding below (offset) to paste into the correct row
Sub test4temp()
Application.ScreenUpdating = False
' test4temp Macro
'
'selects the last cell in column A and moves to the next cell
Sheets("Database MkI").Select
Range("A1").End(xlDown).Select
ActiveCell.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
'adds +1 to the previous cells figure
ActiveCell.FormulaR1C1 = "=R[-1]C+1"
'select, copy and pastes the Objective/Customer details
Sheets("job card").Select
Range("B5:e5").Select
Selection.Copy
Sheets("Database MkI").Select
ActiveCell.Offset(0, 1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'select, copy and pastes the Project Number details
Sheets("job card").Select
Range("B3").Select
Selection.Copy
Sheets("Database MkI").Select
ActiveCell.Offset(0, 1).Select
ActiveSheet.Paste
'select, copy and pastes the details of who submitted the job
Sheets("job card").Select
Range("B30").Select
Selection.Copy
Sheets("Database MkI").Select
ActiveCell.Offset(0, 1).Select
ActiveSheet.Paste
......etc for many more variables
End Sub