½Ð°Ý¦p¦óÅý¨ä¥LÄæ¦ì¨Ì·Ó¤µ¤Ñ¤é´ÁÅã¥Ü¤£¦P©³¦â
- ©«¤l
- 1446
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1470
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-10-21
|
¦^´_ 3# coafort
ÁÂÁ«e½ú¦^ÂÐ
¤W¦Ê¦C¬O¥i¥Hªº
½Ð«e½ú ¸Õ¬Ý¬Ý |
|
|
|
|
|
|
- ©«¤l
- 162
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2018-1-5
- ³Ì«áµn¿ý
- 2024-10-22
|
¦^´_ coafort
ÁÂÁ«e½úµoªí¦¹¥DÃD
VBA¤èªk¨Ñ°Ñ¦Ò
«á¾Ç½m²ß3ºØ¤èªk
Andy2483 µoªí©ó 2022-9-21 16:48
ÁÂÁ¤j¤j
¦ý¬O§Ú¦³¤W¦Ê¦C
½Ð°Ý³oµ{¦¡¬O§_¯à¥Î¡H
ÁÂÁÂ |
|
|
|
|
|
|
- ©«¤l
- 1446
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1470
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-10-21
|
¦^´_ 1# coafort
ÁÂÁ«e½úµoªí¦¹¥DÃD
VBA¤èªk¨Ñ°Ñ¦Ò
«á¾Ç½m²ß3ºØ¤èªk- Option Explicit
- Sub TEST_1()
- 'Åý¤µ¤Ñ¤é´ÁªºBA©³¦â¤£¦P
- '¥uÁ`pAOÄæ¬O¤µ¤éªºBA¼ÆȦbBA2
- Application.ScreenUpdating = False
- Dim i
- [BA2] = ""
- For i = 3 To Cells(Rows.Count, "AO").End(xlUp).Row
- If Cells(i, "AO") = Date Then
- Cells(i, "AO").Interior.ColorIndex = 17
- [BA2] = [BA2] + Cells(i, "BA")
- Else
- Cells(i, "AO").Interior.ColorIndex = xlNone
- End If
- Next
- End Sub
- Sub TEST_2()
- 'Åý¤µ¤Ñ¤é´ÁªºBA©³¦â¤£¦P
- '¥uÁ`pAOÄæ¬O¤µ¤éªºBA¼ÆȦbBA2
- Application.ScreenUpdating = False
- Dim i As Range, Y
- Set Y = CreateObject("Scripting.Dictionary")
- [BA2] = ""
- For Each i In Range([AO3], Cells(Rows.Count, "AO").End(3))
- Y.Add i, i.Item(1, 13)
- If i = Date Then
- i.Interior.ColorIndex = 17
- [BA2] = [BA2] + Y(i)
- Else
- i.Interior.ColorIndex = xlNone
- End If
- Next
- End Sub
- Sub TEST_3()
- 'Åý¤µ¤Ñ¤é´ÁªºBA©³¦â¤£¦P
- '¥uÁ`pAOÄæ¬O¤µ¤éªºBA¼ÆȦbBA2
- Application.ScreenUpdating = False
- Dim R&, Y, Z As Range, xR As Range
- Set Y = CreateObject("Scripting.Dictionary")
- [BA2] = ""
- Set Z = Range([AO3], Cells(Rows.Count, "AO").End(3))
- Z.Interior.ColorIndex = xlNone
- For Each xR In Z
- Y(xR.Value) = Y(xR.Value) + xR.Item(1, 13).Value
- If xR = Date Then
- xR.Interior.ColorIndex = 17
- End If
- Next
- [BA2] = Y(Date)
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|