
excel
Sub hbhb() Application.ScreenUpdating = False Dim myPath$, myFile$, AK As Workbook, k%, h% myPath = ThisWorkbook.Path & myFile = Dir(myPath & *.xls*) Do While myFile If myFile ThisWorkbook.Name Then Set AK = Workbooks.Open(myPath & myFile) For k = 1 To 3 h = ThisWorkbook.Sheets.Count Windows(myFile).Activate Sheets(Sheet & k).Copy After:=ThisWorkbook.Sheets(h) ThisWorkbook.Activate
Copyright © 2025 IZhiDa.com All Rights Reserved.
知答 版权所有 粤ICP备2023042255号