If Worksheets("轉換頁").Cells(r, 1) Like "*xl*" Then
Else
Worksheets("轉換頁").Rows(r).Delete
End If
Next r
'此區塊為刪除"轉換test檔 "字列
For r = LastRow To 2 Step -1
If Worksheets("轉換頁").Cells(r, 1) Like "轉換test檔*" Then Worksheets("轉換頁").Rows(r).Delete
Next r
End Sub
Sub 欄位轉換()
Dim wb(1 To 2) As Workbook
Application.DisplayAlerts = False '是用來略過刪除時提醒的對話方塊, 若還要確認, 則可不用此指令
Set wb(1) = ThisWorkbook
For i = 2 To wb(1).Worksheets("轉換頁").[a65536].End(3).Row
Set wb(2) = Workbooks.Open(Worksheets("轉換頁").Cells(1, 2) & "\" & Worksheets("轉換頁").Cells(i, 1))