'***********************************************找出a店001位置***********************************
For aaa = 1 To 20
On Error Resume Next
店名欄位 = Sheets("Total").Rows(aaa).Find(What:="A店001", LookIn:=xlValues, SearchDirection:=xlPrevious).Column
On Error GoTo 0
Next
For aaa = 1 To 店名欄位
On Error Resume Next
店名列位 = Sheets("Total").Columns(aaa).Find(What:="A店001", LookIn:=xlValues, Lookat:=xlWhole, SearchDirection:=xlPrevious).Row
On Error GoTo 0
Next
'***********************************************找出a店001位置***********************************
If ActiveWorkbook.Sheets.Count = 3 Then
ActiveWorkbook.Sheets(3).Delete
End If
If ActiveWorkbook.Sheets.Count = 2 Then
ActiveWorkbook.Sheets(2).Delete
End If
ActiveWorkbook.Sheets(1).Name = 店名
產品運算列 = 產品起始列定位
產品停算列 = 產品結束列定位
orderrow = 1
While 產品運算列 < 產品停算列 + 1
If Workbooks(本檔名).Sheets("Total").Cells(產品運算列, 店名欄位) <> "" Then