½Ð°Ý¦p¦ó±N°}¦C¸ê®Æ°µ¾ã²z¦b¬d§äÀÉÅã¥Ü¥X¨Ó?
- ©«¤l
- 40
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 83
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-6-3
- ³Ì«áµn¿ý
- 2020-10-1
|
½Ð°Ý¦p¦ó±N°}¦C¸ê®Æ°µ¾ã²z¦b¬d§äÀÉÅã¥Ü¥X¨Ó?
¦p¦³¤W¤dÓÀÉ®×¥¦ªºÀɦW¬OA001.XLS....,½Ð°Ý§Ú¥´¶}¬d´MÀɮצbA1Äæ¦ì¿é¤JA001«ö«ü¥O«ö¶s
´N¥i¥H±qA3¦ì¸mÅã¥Ü¹³³o¼Ëªº®æ¦¡½Ð°ÝVBAn¦p¦ó¼g?ÁÂÁ§A
TEST1.rar (5.52 KB)
|
|
|
|
|
|
|
- ©«¤l
- 40
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 83
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-6-3
- ³Ì«áµn¿ý
- 2020-10-1
|
|
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
- Sub yy()
- Dim n%, i%, j%, m%, arr, arr2(), b()
- ActiveSheet.UsedRange.Offset(2, 0) = ""
- Application.ScreenUpdating = False
- Workbooks.Open Filename:=ThisWorkbook.Path & "\" & [a1] & ".xls"
- With ActiveSheet
- n = .[a65536].End(xlUp).Row
- arr = .Range(.[a1], .Cells(n, 5))
- ReDim arr2(1 To 5, 1 To UBound(arr))
- End With
- ActiveWorkbook.Close True
- Set d = CreateObject("scripting.dictionary")
- For i = 1 To n
- If i = 1 Then x = "Á`p" Else x = arr(i, 4) - arr(i, 5)
- b = Array(arr(i, 1), arr(i, 2), arr(i, 4), arr(i, 5), x)
- If Not d.exists(arr(i, 1)) Then
- m = m + 1
- d(arr(i, 1)) = m
- For j = 1 To 5
- arr2(j, m) = b(j - 1)
- Next
- Else
- For j = 3 To 5
- arr2(j, d(arr(i, 1))) = arr2(j, d(arr(i, 1))) + arr(i, j)
- Next
- End If
- Next
- [a3].Resize(m, 5) = Application.Transpose(arr2)
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X
|
|
|
|
|
|
|
- ©«¤l
- 40
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 83
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-6-3
- ³Ì«áµn¿ý
- 2020-10-1
|
ÁÂÁ¶W¯Åª©¥D§Úª¾¹D¦p¦ó°µ¤F,¨Ó·½ÀɬO§_¤Ó¦Ãö¤F!Åý§Ú¦³ÂIºÃ´b,¦]¬°¶W¯Åª©¥D
¼gªº¨º·|¦³°ÝÃD,¨SÃö«Y§Ú·|¥h¤F¸Ñªº,ÁÂÁ§Aªº«ü¾É.... |
|
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
¥»©«³Ì«á¥Ñ oobird ©ó 2011-8-13 10:52 ½s¿è
³á¡AÅý§Ú¦³ÂIºÃ´b,¦]¬°¶W¯Åª©¥D
¼gªº¨º·|¦³°ÝÃD,¨SÃö«Y¡A«¢«¢¡I¦b¤U·Q½Ð±Ð¡A¬Oþ¸Ì·|¦³°ÝÃD¡H
»¡¥X¨Ó¤]¦nÅý§Ú¾Ç²ß¾Ç²ß¡C |
|
|
|
|
|
|
- ©«¤l
- 40
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 83
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-6-3
- ³Ì«áµn¿ý
- 2020-10-1
|
¶W¯Åª©¥D¹ï¤£°_°Õ!§Ú¦b¸Õ®É¨Ó·½ÀÉclose®É«á±ªº¸ê®Æ¨SÅã¥Ü¥X¨Ó,©Ò¥H´N§âActiveWorkbook.Close True²¾¨ì«á±´Nok¤F,Åý§Ú«ÜºÃ°Ý¬°¤°»ò¨Ó·½ÀÉclose
¸ê®Æ¬O¦s¦bþ°µ³B²z?©Ò¥H¶W¯Åª©¥D¨º¦³¥i¯à¼g¿ù,¬O§Ú¤Óµæ°Õ!¤£¨£©Ç.. |
|
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
Workbooks.Open Filename:=ThisWorkbook.Path & "\" & [a1] & ".xls"
With ActiveSheet
n = .[a65536].End(xlUp).Row
arr = .Range(.[a1], .Cells(n, 5))
°õ¦æ¨ì³o¤@¥y®É¡A¤w§â©Ò¦³¼Æ¾Ú¦s¦b°}¦C°O¾Ð¤¤¤F¡A¤§«áªº¦s¨ú³£¦b³oÓ°}¦C¤¤
¥´¶}ªº¬¡¶Ã¯¤w¸g¥Î¤£µÛ´N¥i¥HÃö³¬¤F¡C
§An²¾¨ì«á±¦AÃö¤]ÀH§A¤F¡C¤£¥i¯à²¾¨ì«á±¥hµ{¦¡¤~·|okªº¡C |
|
|
|
|
|
|
- ©«¤l
- 40
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 83
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-6-3
- ³Ì«áµn¿ý
- 2020-10-1
|
ÁÂÁ¶W¯Åª©¥D¤S¦h¾Ç¤F¤@ÂI... |
|
|
|
|
|
|