Looking for some help with a piece of code I am trying to modify.. The code below copies & pastes the values on a separate worksheet ("Report") within the same workbook. What I would like to do is copy & paste the values onto a completely separate workbook.
Dim irow As Long
Dim ws As Worksheet
Set ws = Worksheets("Report")
'find first row in database
irow = ws.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
With ws
.Range("A" & irow) = Requisition_No.Value
.Range("B" & irow) = Suppliers.Value
.Range("C" & irow) = IndCode.Value
.Range("D" & irow) = UserName.Value
.Range("E" & irow) = DateBox.Value
.Range("F" & irow) = Justification.Value
Dim irow As Long
Dim ws As Worksheet
Set ws = Worksheets("Report")
'find first row in database
irow = ws.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
With ws
.Range("A" & irow) = Requisition_No.Value
.Range("B" & irow) = Suppliers.Value
.Range("C" & irow) = IndCode.Value
.Range("D" & irow) = UserName.Value
.Range("E" & irow) = DateBox.Value
.Range("F" & irow) = Justification.Value