[vba]Код
Sub u_511()
u = Sheets("Main File").Cells(Rows.Count, "a").End(xlUp).Row + 1
Sheets("Main File").Range("h" & u) = Sheets("Labor sheet for Employees").Range("d2").Value
Sheets("Main File").Range("d" & u) = Sheets("Labor sheet for Employees").Range("b6").Value
Sheets("Main File").Range("g" & u) = Sheets("Labor sheet for Employees").Range("b12").Value
v = Application.Match("Total:", Sheets("Labor sheet for Employees").Range("d:d"), 0)
Sheets("Main File").Range("i" & u) = Sheets("Labor sheet for Employees").Range("e" & v).Value
w = Application.Match("Reson for no installation", Sheets("Labor sheet for Employees").Range("a:a"), 0)
Sheets("Main File").Range("p" & u) = Sheets("Labor sheet for Employees").Range("b" & w).Value
End Sub
[/vba]