½Ð°Ý¦p¦óÅý¨ä¥LÄæ¦ì¨Ì·Ó¤µ¤Ñ¤é´ÁÅã¥Ü¤£¦P©³¦â
- ©«¤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
|
½Ð°Ý¦p¦óÅý¨ä¥LÄæ¦ì¨Ì·Ó¤µ¤Ñ¤é´ÁÅã¥Ü¤£¦P©³¦â
¥»©«³Ì«á¥Ñ coafort ©ó 2022-9-21 14:34 ½s¿è
½Ð°Ý¦U¦ì¤j¤j
§ÚAO³oÓÄæ¦ì¬O¤é´Á
BA³oÓÄæ¦ì¬O¼ÆÈ
§Ú·QÅý¤µ¤Ñ¤é´ÁªºBA©³¦â¤£¦P
¤ñ¤è
AO3¬O2022/9/20 BA3Äæ¦ì©³¦â¥¿±`
AO4¬O2022/9/21 BA4Äæ¦ì©³¦âÅܦ¨µµ¦â
½Ð°Ý¸Ó¦p¦ó³]p¡H
¥t¥~½Ð±Ð
¦p¦ó³]p¥i¥H¥uÁ`p¤µ¤éBA¼ÆÈ
¤ñ¤è
AO3¬O2022/9/20 BA3¼ÆÈ4
AO4¬O2022/9/21 BA4¼ÆÈ5
AO5¬O2022/9/21 BA5¼ÆÈ6
µM«áAB2Åã¥ÜBA4+BA5
ÁÂÁÂ |
|
|
|
|
|
|
- ©«¤l
- 1447
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1471
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-12-5
|
¦^´_ 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 |
|
|
|
|
|
|
- ©«¤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
- 1447
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1471
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-12-5
|
¦^´_ 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½ú¦^ÂÐ
¤W¦Ê¦C¬O¥i¥Hªº
½Ð«e½ú ¸Õ¬Ý¬Ý
Andy2483 µoªí©ó 2022-9-21 19:00
½Ð°Ý¤W¦Ê¦C»Ýn§ï¤°»ò©O¡H
ÁÂÁ¤j¤j |
|
|
|
|
|
|
- ©«¤l
- 1447
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1471
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-12-5
|
¦^´_ 5# coafort
ÁÂÁ«e½ú¦^ÂÐ
²©ö»s§@¼ÒÀÀ±¡¹Ò½d¨Ò,½Ð«e½ú´ú¸Õ¬Ý¬Ý
TEST_20220922.zip (44.86 KB)
- Sub ¶Ã¼Æ§G°}()
- Dim Brr(1 To 1000, 1 To 13), i, E
- Cells.Interior.ColorIndex = xlNone
- Call ²M°£¿z¿ï
- Brr(1, 1) = "¤é´Á"
- Brr(1, 13) = "¤µ¤é¦Xp"
- For i = 2 To UBound(Brr)
- Brr(i, 1) = "=TODAY() + " & Int(Rnd() * 100) Mod 5
- Brr(i, 13) = Int(Rnd() * 100)
- Next
- With [AO2].Resize(UBound(Brr), UBound(Brr, 2))
- .Value = Brr
- .Value = .Value
- End With
- End Sub
- Sub ¿z¿ï¤µ¤Ñ()
- Call ²M°£¿z¿ï
- If Application.Version >= 12 Then
- Selection.AutoFilter Field:=41, Criteria1:= _
- xlFilterToday, Operator:=xlFilterDynamic
- Else
- uDATE = Date
- Selection.AutoFilter Field:=41, Criteria1:=uDATE, Operator:=xlAnd
- End If
- End Sub
- Sub ²M°£¿z¿ï()
- If Sheets(1).AutoFilter Is Nothing Then
- [A2:BA2].AutoFilter
- Else
- If Sheets(1).FilterMode = True Then Sheets(1).ShowAllData
- End If
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤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½ú¦^ÂÐ
²©ö»s§@¼ÒÀÀ±¡¹Ò½d¨Ò,½Ð«e½ú´ú¸Õ¬Ý¬Ý
Andy2483 µoªí©ó 2022-9-22 08:37
½Ð°Ý¤j¤j
¥i¥H³]p¦¨¤£¥Î«ö¿z¿ï
µM«á·|¦Û¤v¿z¿ï¶Ü
ÁÂÁ¤j¤j |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 6# Andy2483
ÁÙ¬O»¡³]©w®æ¦¡¤Æ±ø¥ó
¦³¿ìªk³]©w¤½¦¡
Åý¤µ¤Ñ¤é´Áªº«ü©wÄæ¦ìÅܦâ¡H
ÁÂÁ¤j¤j |
|
|
|
|
|
|
- ©«¤l
- 1391
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 1401
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-9-11
- ³Ì«áµn¿ý
- 2024-12-16
|
|
google"EXCEL°g" blog ©Îgoogleºô§}:https://hcm19522.blogspot.com/
|
|
|
|
|
- ©«¤l
- 1447
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1471
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-12-5
|
¥»©«³Ì«á¥Ñ Andy2483 ©ó 2022-9-22 09:57 ½s¿è
¦^´_ 8# coafort
ÁÂÁ«e½ú¦^ÂÐ
1.«á½ú¹ï®æ¦¡¤Æ±ø¥ó¤£¼ô,¤u§@ªÅÀÉ¥¿¿n·¥¾Ç²ßVBA
2.«á¾Ç¹B¥ÎIJµo¤è¦¡½d¨Ò¦p¤U
TEST_20220922_1.zip (45.8 KB)
- Private Sub Worksheet_Change(ByVal Target As Range)
- With Target
- If .Column = [AO3].Column And .Count = 1 And .Row >= 3 Then
- Call TEST_1
-
- End If
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|