¼ÐÃD:
[µo°Ý]
½Ð°Ýn«ç»ò¥ÎVBA¼g¥XÃþ¦ü¼Ï¯Ã¤ÀªRªº¥\¯à
[¥´¦L¥»¶]
§@ªÌ:
sandra_wang
®É¶¡:
2010-11-24 16:29
¼ÐÃD:
½Ð°Ýn«ç»ò¥ÎVBA¼g¥XÃþ¦ü¼Ï¯Ã¤ÀªRªº¥\¯à
¤j®a¦n:
¤p©f§Ú¦³Ó°ÝÃD·Q½Ð±Ð¤j®a¡C
쥻§Ú¦Û¤v¿ý»s¼Ï¯Ã¤ÀªR¨Ó§âHR¬Û¦P¦WºÙªºªF¦è¡AHXÄæ¦ì¼Æ¶q¥[Á`ªº°Ê§@¡A
µM«á¦A§â¼Ï¯Ã¤ÀªRªºµ²ªG«öCtrl+alt+¡õ ¶K¨ìHZ & IFÄæ¦ì¡A
¦ý¬O¼Ï¯Ã¤ÀªR³Ì©³¤U·|¦³¤@Äæ¦Xp¡A¥i¬O§Ú¤£·Qn¦³¦Xp³oÄæ¡A
¦Ó¥B¤¤¶¡ªºHS~HWÄæ¦ì¸ê®Æ§ÚÁÙn¤â°Ê¶ñ¹L¥h¡A
©Ò¥H·Q°Ý¤j®an«ç»ò¥ÎVBA¼g¥XÃþ¦ü¼Ï¯Ã¤ÀªRªº¥\¯à©O?
§Úªº»Ý¨D¬O:·íHRÄæ¦ì¦WºÙ¬Û¦P®É¡A«h§âHXÄæ¦ì¼Æ¦r¦Xp¡A¨Ã¨Ì§Ç¶ñ¨ìHZ~IFÄæ¦ì¡C
§@ªÌ:
GBKEE
®É¶¡:
2010-11-24 17:34
¦^´_
1#
sandra_wang
Sub Ex()
Dim D As Object, R, S$, Rng As Range
Set D = CreateObject("Scripting.Dictionary")
With ActiveSheet
.[HR9].Resize(, 7).Copy .[HZ9]
.[HZ9].CurrentRegion.Offset(1).Clear
For Each R In .Range(.[HR10], .[HR10].End(xlDown))
S = Join(Application.Transpose(Application.Transpose(R.Resize(, 6))), ",")
D(S) = D(S) + R(1, 7)
Next
Set Rng = .[HZ9].Offset(1)
For Each R In D.KEYS
Rng.Resize(, 6) = Split(R, ",")
Rng.Offset(, 6) = D(R)
Set Rng = Rng.Offset(1)
Next
End With
End Sub
½Æ»s¥N½X
§@ªÌ:
oobird
®É¶¡:
2010-11-24 19:58
³oÃþ°ÝÃD§Ú¤ñ¸û«Øij¼ô²ß¼Ï¯Ã¤ÀªRªí¡C
[attach]3744[/attach]
§@ªÌ:
HUNGCHILIN
®É¶¡:
2010-11-25 00:16
³oÃþ°ÝÃD§Ú¤ñ¸û«Øij¼ô²ß¼Ï¯Ã¤ÀªRªí¡C
oobird µoªí©ó 2010-11-24 19:58
§Ú¤]¬O»{¬°³o¼Ë¤ñ¸û§Ö
§@ªÌ:
sandra_wang
®É¶¡:
2010-11-25 09:19
¥»©«³Ì«á¥Ñ sandra_wang ©ó 2010-11-25 09:41 ½s¿è
½Ð°Ý#3 oobird
§Ún«ç»ò±q¼Ï¯Ã¤ÀªRªº"ª©±°t¸m"§Ë¥X¹³§A¤@¼Ëªºªí®æ©O?
§Ú§Ë±o¸ò§A³£¤£¤@¼ËC!!
§@ªÌ:
oobird
®É¶¡:
2010-11-25 11:04
[attach]3756[/attach]
§@ªÌ:
sandra_wang
®É¶¡:
2010-11-26 08:35
To oobird:
§Ú¦³¸Õ¹L§Aªº¤èªk¤F¡A¥i¥H°µ¥X¨Ó¡A
¦ý¬O§Ú¦³¥t¤@Ó°ÝÃD¬O¡A¦]¬°³o¨Ç¹Lµ{§Ú·Q©ñ¶i¥h¥¨¶°ùر¡A
¦pªG§Ú¥Î¿ý»s¥¨¶°ªº¸Ü¡A¨º¥un¨C¦¸¶i¨Óªº¸ê®Æ¶q¤£¦P¡A¨Ï¥Î¿ý»s¥¨¶°´N·|¦³°ÝÃD~
©Ò¥H§Ú¬O¤£¬OÀ³¸Ó¥ÎVBA¼g·|¤ñ¸û¦n©O?
§@ªÌ:
oobird
®É¶¡:
2010-11-26 08:54
¥»©«³Ì«á¥Ñ oobird ©ó 2010-11-26 08:57 ½s¿è
©w¸q°ÊºA½d³ò¦WºÙ¡C
«e´X¤ÑHsª©¥D¦³±Ð¹L
¡C¤£¹L~³Q§R¤F¡I
GBª©¥DªºVBA¤]¬O«Ü¦nªº¿ï¾Ü¡C
Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)