'產生工作表.............................................................................. '列229
Sa = 0
Windows("S_49_A交集_" & NUM & "_" & mthcount & "期_ML.xls").Activate
shcount = ActiveWorkbook.Sheets.Count
For sh = 1 To shcount
tx = Sheets(1).[R7].End(xlDown).Row
ty = Sheets(1).[IV5].End(xlToLeft).Column
For tz = 20 To ty
Sheets(1).Range("T7:T" & tx).Select
If Application.Count(Selection) > 0 Then
Sheets.Add
ActiveWindow.Zoom = 75 '縮放
d = d + 1
ReDim Preserve brr(d - 1)
ActiveSheet.Name = Sheets(d + 1).[T5] & "-" & Sheets(d + 1).[T3] '工作表重新命名
brr(d - 1) = Sheets(d + 1).[T5] & "-" & Sheets(d + 1).[T3] '工作表重新命名記錄陣列
brr(d - 1) = ActiveSheet.Name
Sheets(d + 1).Columns("A:T").Copy '複製A:T的資料內容
Sheets(1).[A1].Select
ActiveSheet.Paste
End If
Sheets(1).Range("T7:T" & tx).Select
For Each b In Selection
If b <> "" Then
'I:T...............................................................................................................