本帖最后由 zjdh 于 2022-5-16 23:14 编辑
Sub TEXT()
Set Mypath = CreateObject("Shell.Application").BrowseForFolder(0, "请选择希望操作的文件夹:", &H1)
If Not Mypath Is Nothing Then
Ph = Mypath.self.Path & "\"
End If
Application.ScreenUpdating = False
Myfile = Dir(Ph & "\*.*")
Do While Myfile <> ""
Set wb = Workbooks.Open(Ph & "\" & Myfile)
With wb.Sheets("表三甲")
rw = .Range("E10000").End(xlUp).Row
.Range("E7:E" & rw).Copy .Range("K7:K" & rw)
End With
wb.Close True
Myfile = Dir
Loop
Application.ScreenUpdating = True
End Sub