|
Sub a()
'ÉèÖò»ÏÔʾ¾¯¸æ¶Ô»°¿ò
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Sheets("Ä£°å").Select
For i = 2 To Sheets("Êý¾ÝÔ´").[A1048576].End(3).Row
company = Sheets("Êý¾ÝÔ´").Cells(i, 1).Value '¹«Ë¾
Sheets("Ä£°å").[A2].Value = "¹«Ë¾Ãû³Æ£º" & Sheets("Êý¾ÝÔ´").Cells(i, 1).Value
person = Sheets("Êý¾ÝÔ´").Cells(i, 5).Value '¸ú½øÈË
Sheets("Ä£°å").[C2].Value = "¸ú½øÈË£º" & Sheets("Êý¾ÝÔ´").Cells(i, 5).Value
Sheets("Ä£°å").[B3].Value = Sheets("Êý¾ÝÔ´").Cells(i, 4).Value
Sheets("Ä£°å").[A4].Value = "ÁªÏµÈË£º" & Sheets("Êý¾ÝÔ´").Cells(i, 2).Value & " µç»°£º" & Sheets("Êý¾ÝÔ´").Cells(i, 3).Value
ActiveSheet.Copy '¸´Öƹ¤×÷±íµ½Ð¹¤×÷²¾
ActiveWorkbook.SaveAs ThisWorkbook.Path & "\" & person & "-" & company & ".xlsx" '±£´æ¹¤×÷²¾£¬²¢ÃüÃû
ActiveWorkbook.Close
Next
Application.ScreenUpdating = True
End Sub
|
ÆÀ·Ö
-
1
²é¿´È«²¿ÆÀ·Ö
-
|