|
Option Explicit
Sub test0()
Dim ar, i&, strFileName$, strPath$, wks As Worksheet
Application.ScreenUpdating = False
Application.DisplayAlerts = False
strPath = ThisWorkbook.Path & "\"
ar = [A1].CurrentRegion.Value
Set wks = Worksheets("岗位说明书")
For i = 2 To UBound(ar)
wks.Copy
With ActiveWorkbook
strFileName = strPath & "岗位说明书 - " & ar(i, 3)
With .Worksheets(1)
.Range("E4").Value = ar(i, 3)
End With
.SaveAs strFileName
.Close
End With
Next i
Set wks = Nothing
Application.ScreenUpdating = True
Application.DisplayAlerts = True
Beep
End Sub
|
评分
-
2
查看全部评分
-
|