- 帖子
- 4901
- 主題
- 44
- 精華
- 24
- 積分
- 4916
- 點名
- 100
- 作業系統
- Windows 7
- 軟體版本
- Office 20xx
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台北
- 註冊時間
- 2010-4-30
- 最後登錄
- 2025-4-25
               
|
9#
發表於 2011-2-1 23:48
| 只看該作者
回復 8# b9208 - Sub Ex()
- Dim Ay()
- Dim Sh As Worksheet
- For Each Sh In Sheets
- With Sh
- If IsNumeric(Application.Match(.Name, Array("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"), 0)) Then
- For Each A In .Range("O:O").SpecialCells(xlCellTypeConstants)
- If IsNumeric(Application.Match(Left(A, 1), Array("E", "M", "R", "S", "T", "U", "W"), 0)) Then
- ar = Array(Format(.[F2], "yyyy/mm/dd"), .Name, .Cells(A.Row, "E"), .Cells(A.Row, "G"), .Cells(A.Row, "H"), .Cells(A.Row, "I"), .Cells(A.Row, "J"), .Cells(A.Row, "K"), .Cells(A.Row, "M"), .Cells(A.Row, "N"), A)
- ReDim Preserve Ay(s)
- Ay(s) = ar
- s = s + 1
- End If
- Next
- End If
- End With
- Next
- With Sheets("Qt List")
- If s > 0 Then .Cells(.Rows.Count, 1).End(xlUp).Offset(1, 0).Resize(s, 11) = Application.Transpose(Application.Transpose(Ay))
- End With
- End Sub
複製代碼 |
|