½Ð°Ý¦r¦ên¦p¦ó²Îp¦¸¼Æ¤£«´_?
©«¤l 11 ¥DÃD 4 ºëµØ 0 ¿n¤À 23 ÂI¦W 0 §@·~¨t²Î xp ³nÅ骩¥» sp2 ¾\ŪÅv 10 ©Ê§O ¨k ¨Ó¦Û u µù¥U®É¶¡ 2010-5-18 ³Ì«áµn¿ý 2024-8-7
½Ð°Ý¦r¦ên¦p¦ó²Îp¦¸¼Æ¤£«´_?
¥»©«³Ì«á¥Ñ oiggu ©ó 2010-7-24 12:47 ½s¿è
½Ð°Ý¦r¦ên¦p¦ó²Îp¦¸¼Æ¤£«´_
oiggu
©«¤l 206 ¥DÃD 3 ºëµØ 0 ¿n¤À 218 ÂI¦W 0 §@·~¨t²Î WIN10 ³nÅ骩¥» OFFICE 365 ¾\ŪÅv 100 ©Ê§O ¨k ¨Ó¦Û ¥xÆW¥x¥_ µù¥U®É¶¡ 2010-5-15 ³Ì«áµn¿ý 2023-6-18
Ó¤H«Øij
±Ä¥Î¦X¨Ö·Jºâ¸ò¼Ï¯Ã¤ÀªRªí
³£¬O§Ö³t¦³®Ä¤èªk
300 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X
©«¤l 5923 ¥DÃD 13 ºëµØ 1 ¿n¤À 5986 ÂI¦W 0 §@·~¨t²Î win10 ³nÅ骩¥» Office 2010 ¾\ŪÅv 150 ©Ê§O ¨k ¨Ó¦Û ¥xÆW°ò¶© µù¥U®É¶¡ 2010-5-1 ³Ì«áµn¿ý 2022-1-23
¦^´_ 10# oiggu Sub Ex()
Dim D As Range, R As Range, M$
Set D = CreateObject("Scripting.Dictionary")
With Sheets("date")
For Each R In .Range("b2", .Cells(.[a1].End(xlDown).Row, .[a1].End(xlToRight).Column))
M = .Cells(R.Row, 1) & .Cells(1, R.Column)
D(M) = D(M) + R
Next
End With
With Sheets("A")
For Each R In .Range("b3", .Cells(.[a3].End(xlDown).Row, .[a1].End(xlToRight).Column))
M = .Cells(R.Row, 1) & .Cells(1, R.Column)
R = D(M)
Next
End With
End Sub ½Æ»s¥N½X
©«¤l 11 ¥DÃD 4 ºëµØ 0 ¿n¤À 23 ÂI¦W 0 §@·~¨t²Î xp ³nÅ骩¥» sp2 ¾\ŪÅv 10 ©Ê§O ¨k ¨Ó¦Û u µù¥U®É¶¡ 2010-5-18 ³Ì«áµn¿ý 2024-8-7
¦^´_ 9# oiggu
Sub sum()
For k = 2 To 10
Set d = CreateObject("Scripting.Dictionary")
With Sheets("date")
For Each a In Sheets("date").Range(.[a3], .[a65536].End(xlUp))
d(a) = d(a) + a.Offset(, k - 1)
Next
For Each a In Sheets("a").Range([a3], [a65536].End(xlUp))
Sheets("a").Cells(a.Row, k) = d(a)
Next
End With
Next
End Sub
·PÁªO¥D
¤£¾å±o¨ºùØ¥X¿ù¡B ´ú¸Õ¥X¨ÓªºÈ=0 ¤£¥¿½T
½Ð°Ý Sheets("a").Cells(a.Row, k) = d(a) ¿ù¦b¨ºùØ?
oiggu
©«¤l 11 ¥DÃD 4 ºëµØ 0 ¿n¤À 23 ÂI¦W 0 §@·~¨t²Î xp ³nÅ骩¥» sp2 ¾\ŪÅv 10 ©Ê§O ¨k ¨Ó¦Û u µù¥U®É¶¡ 2010-5-18 ³Ì«áµn¿ý 2024-8-7
[ª©¥DºÞ²z¯d¨¥] Hsieh(2010-7-27 18:57): À³¸Ó¹ï¤Wz§Þ¥©¥[¥H¤F¸Ñ,¦Û¤v¹Á¸Õ«á¦A°w¹ï°ÝÃDµo°Ý
¦^´_ 8# Hsieh
·PÁ¶W¯Åª©¥D
§A¼gªº vba ²¼ä¦³¤O¡A¤w¸g¥i¥H²Îp¦¸¼Æ¨Ï¥Î¥¿±`¡A
ÁٽбФ@Ó°ÝÃD¡A¦p¦ó§â¦P¦WºÙªº¼Æ¦rÁ`p°_¨Ó¡B
¹ï·Ó §÷®Æ¶µ¥Ø¤ÀÃþpºâ¡A¦A¥Î VBA ¶×¤J®æ¦¡n¦p¦ó§@?
test.zip
(3.29 KB)
oiggu
©«¤l 4901 ¥DÃD 44 ºëµØ 24 ¿n¤À 4916 ÂI¦W 258 §@·~¨t²Î Windows 7 ³nÅ骩¥» Office 20xx ¾\ŪÅv 150 ©Ê§O ¨k ¨Ó¦Û ¥x¥_ µù¥U®É¶¡ 2010-4-30 ³Ì«áµn¿ý 2024-11-28
¦^´_ 7# oiggu Sub MyCount()
Set d = CreateObject("Scripting.Dictionary")
Set d1 = CreateObject("Scripting.Dictionary")
With Sheet1
For Each a In .Range(.[A1], .[A65536].End(xlUp))
d1(Left(a, 5)) = d1(Left(a, 5)) + Application.Sum(a.Offset(, 1).Resize(, 3))
If d(Left(a, 5)) = "" Then
d(Left(a, 5)) = a
ElseIf InStr(d(Left(a, 5)), a) = 0 Then
d(Left(a, 5)) = d(Left(a, 5)) & "," & a
End If
Next
For Each a In .[F5:F7]
For Each b In .[G3:L3]
If (b.Column Mod 2) = 1 Then Cells(a.Row, b.Column) = UBound(Split(d(a & b), ",")) + 1
If (b.Column Mod 2) = 0 Then Cells(a.Row, b.Column) = d1(a & b)
Next
Next
End With
End Sub ½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý
©«¤l 11 ¥DÃD 4 ºëµØ 0 ¿n¤À 23 ÂI¦W 0 §@·~¨t²Î xp ³nÅ骩¥» sp2 ¾\ŪÅv 10 ©Ê§O ¨k ¨Ó¦Û u µù¥U®É¶¡ 2010-5-18 ³Ì«áµn¿ý 2024-8-7
¥»©«³Ì«á¥Ñ oiggu ©ó 2010-7-26 06:29 ½s¿è
ÁÂÁ¶W¯Åª©¥D¡A¤Ó¯«¤F¡C
¤w¸g¥i¥H²Îp¦¸¼Æ
½Ð°Ýn¦p¦ó¥ÎVBA§âª÷ÃB²Îp¥X¨Ó
©ñ¤J®æ¦¡¤º¡B¦r¦ê¶}ÀY+¦~¤ë²Îp
²Îp.JPG
(99.92 KB)
²Îp.zip
(9.51 KB)
oiggu
©«¤l 4901 ¥DÃD 44 ºëµØ 24 ¿n¤À 4916 ÂI¦W 258 §@·~¨t²Î Windows 7 ³nÅ骩¥» Office 20xx ¾\ŪÅv 150 ©Ê§O ¨k ¨Ó¦Û ¥x¥_ µù¥U®É¶¡ 2010-4-30 ³Ì«áµn¿ý 2024-11-28
¦^´_ 5# oiggu Sub MyCount()
Set d = CreateObject("Scripting.Dictionary")
With Sheet1
For Each a In .Range(.[A1], .[A65536].End(xlUp))
If d(Left(a, 5)) = "" Then
d(Left(a, 5)) = a
ElseIf InStr(d(Left(a, 5)), a) = 0 Then
d(Left(a, 5)) = d(Left(a, 5)) & "," & a
End If
Next
For Each a In .[C3:C5]
For Each b In .[D2:F2]
.Cells(a.Row, b.Column) = UBound(Split(d(a & b), ",")) + 1
Next
Next
End With
End Sub ½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý
©«¤l 11 ¥DÃD 4 ºëµØ 0 ¿n¤À 23 ÂI¦W 0 §@·~¨t²Î xp ³nÅ骩¥» sp2 ¾\ŪÅv 10 ©Ê§O ¨k ¨Ó¦Û u µù¥U®É¶¡ 2010-5-18 ³Ì«áµn¿ý 2024-8-7
ÁÂÁ¦U¦ì:
¸g´ú¸Õ³£¥i¥H¨Ï¥Î¡A¦ý¹J¨ì¤@Ó°ÝÃD¸ê®Æ¦³5000µ§·|¼vÅT°õ¦æ³t«×·|«D±`摱
½Ð°Ý¬O§_¥i§ïvba ¦A¶×¤J®æ¤l¥[§Ö°õ¦æ³t«×¡C
oiggu