$pathfile3 = Win32::GetFullPathName("Template\\$input.xlsx"); $Book2->SaveAs("$pathfile3");