½Ð°Ý§Ú¦p¦ó±N®w¦sªº¬¡¶ªº¸ê®Æ,±N¥¦Àx¦s¨ì¦U¬¡¶Ã¯?
- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 128
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-6-4
|
¦^´_ 4# flask
¸ê®ÆÀ³¿í¦u¸ê®Æ®w«Ø¥ß³W«hn°µ¤ÀªR´N¤ñ¸û¤è«K
¥H§A¥Ø«eªº¸ê®Æn¤À¶À˵øµ{¦¡½X¦p¤U- Sub ex()
- Dim a As Range
- Set dic = CreateObject("Scripting.Dictionary")
- Set d = CreateObject("Scripting.Dictionary")
- With Sheets("®w¦s")
- i = 1
- Do Until .Cells(1, i) = ""
- myday = .Cells(1, i).Value
- For Each a In .Range(.Cells(2, i), .Cells(.Rows.Count, i).End(xlUp))
- If IsEmpty(d(Val(a))) Then d(Val(a)) = a.Offset(, 1).Value
- ar = Array(a.Offset(, 3), a.Offset(, 4))
- If IsEmpty(dic(a & d(Val(a)))) Then
- dic(a & d(Val(a))) = ar
- Else
- dic(a & d(Val(a))) = Array(dic(a & d(Val(a)))(0) + ar(0), dic(a & d(Val(a)))(1) + ar(1))
- End If
- Next
- For Each ky In d.items
- With Sheets(ky)
- s = .Cells(2, .Columns.Count).End(xlToLeft).Column + 1
- .Cells(1, s) = myday: .Cells(2, s) = "¶R": .Cells(2, s + 1) = "½æ"
- For Each a In .Range(.[A3], .Cells(.Rows.Count, 1).End(xlUp))
- .Cells(a.Row, s).Resize(, 2) = dic(a & ky)
- Next
- End With
- Next
- dic.RemoveAll: d.RemoveAll
- i = i + 5
- Loop
- End With
- End Sub
½Æ»s¥N½X |
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|
- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 128
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-6-4
|
.UsedRange.Columns.AutoFit
.Range(.Cells(2, s), .Cells(L, s)).FormatConditions.Add Type:=xlCellValue, Operator:=xlGreaterEqual _
, Formula1:="10000"
.Range(.Cells(2, s), .Cells(L, s)).FormatConditions(1).Font.ColorIndex = 3
.Range(.Cells(2, s + 1), .Cells(L, s + 1)).FormatConditions.Add Type:=xlCellValue, Operator:=xlGreaterEqual _
, Formula1:="10000"
.Range(.Cells(2, s + 1), .Cells(L, s + 1)).FormatConditions(1).Font.ColorIndex = 5 |
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|