¼ÐÃD:
¥X³f³æ¦X¨Ö¦C¦L¿é¥X°ÝÃD¡A¦³µLª½±µ¾Þ§@¤èªk¡A©Î»Ý±Ä¥ÎVBA¸Ñ¨M¡C
[¥´¦L¥»¶]
§@ªÌ:
Baracuda
®É¶¡:
2011-5-2 15:57
¼ÐÃD:
¥X³f³æ¦X¨Ö¦C¦L¿é¥X°ÝÃD¡A¦³µLª½±µ¾Þ§@¤èªk¡A©Î»Ý±Ä¥ÎVBA¸Ñ¨M¡C
²{¦³¥X³f³æ(¤@³æ¸¹¦³¦h¶µ²£«~n¿é¥X)¡A¸ÔSheet¡u¿é¥X¤º®e¡v
¦]¬°¥X³f·í®É¡A§Y»Ýn§Y®É¦L¥X¨Ó°eµ¹«È¤á¡C
Sheet ¤º®e»¡©ú
¡u¥X³f³æ¤º®e¡v¡Gq³æn¥X³fªº¤º®e
¡u¥X³f³æ«È¤á¡v¡Gq³æ¬O¨º¦ì«È¤áqÁʪº
¡u¿é¥X¤º®e¡v¡Gnµ¹Word¡B¦X¨Ö¦C¦L¿é¥X¥Îªº
°ÝÃD¦³3¡A¦p¤U¡A¤£¨D¯à°÷§¹¥þ¸Ñ¨M
1.¥i§_¾Þ§@ª½±µ®M¦L¥X³f³æ¸¹¡B«~¦W¡B¼Æ¶q¡B³æ»ù¡Bª÷ÃB¡A¦ý¦P¤@±i¥X³f³æ¡A¥u¦³¤@¦ìqÁʫȤá¡A©Ò¥H¥un¥X²{¤@¦¸¡C
2.¦pªG¦P®É¦³3±i¥X³f³æn¦L¡A¥i§_¨Ì¥X³f³æ¸¹¤£¦P®É¡A§PÂ_»Ýn´«¶¦C¦L¡C
3.¥i§_¦³·í¶¥X³f³æªº¦Xp¼Æ¥i¥H¦C¦L¤W¥h(³oÓ¦pªG¤£¦æ¡AÁÙ¥i¥H¦Û¤w¥[¹L¤â¼g¤W¥h)
1.ªº³¡¤À¤ñ¸û»Ýn°µ¡A¦]¬°¤â¼g¤£§Ö¡A®e©ö¿ù¡C
2.¦Ü¤£ÀÙ¡A¤À§å¦C¦L¤]ÁÙ¦n
¾ãÓ°ÝÃD¦³ÂIÃø«×¡A¦pªG¤£¯à¥þ³¡¸Ñ¨M¡A½Ð°Ý¦³µL¸ÑÃDªº¤è¦V«ü¾É¡A¤]«Ü·PÁ¡C
§@ªÌ:
mark15jill
®É¶¡:
2011-5-2 16:15
¦^´_
1#
Baracuda
µy·L¬Ý¤F¤@¤U...
§Úªº¯à¤O¤£¤Ó°ª¥u¯à´£¨Ñ¨Ç²³æ«Øij..
1ªº³¡¥÷ ¦pªG·Ó¼Ó¥D©Òzªº¸Ü °ò¥»¤W ¥i¥H¥Î¿z¿ï ±N¨ä°Ï¤À¥X¨Ó...
¦p
¥Ò«È¤á 10001001 A²£«~ 4 5.18 21
¥Ò«È¤á 10001001 B²£«~ 3 45.75 137
¥Ò«È¤á 10001001 D²£«~ 6 14.93 90
¥Ò«È¤á 10001001 E²£«~ 2 28.34 57
¥Ò«È¤á 10002002 A²£«~ 3 5.18 16
¤B«È¤á 10002001 H²£«~ 7 12.96 91
¤B«È¤á 10002001 J²£«~ 9 90.58 815
¤B«È¤á 10002001 C²£«~ 6 21.05 126
³o¼Ë¤U¥h°Ï¤À..
§@ªÌ:
Baracuda
®É¶¡:
2011-5-3 16:34
mark15jill ÁÂÁ¡A³oÓ¤j·§¥u¯àÁÂÁ¤F¡C
§@ªÌ:
Baracuda
®É¶¡:
2011-5-3 16:38
¤@¯ë¦Ó¨¥¡A¦bª©±±¾¤F³o¨Ç®É¶¡¡A¦pªG¨S¤H¦³¦^¡A§Ú±À©w´N¨S±Ï¤F¡C
§Ú·Q¥X¨Óªº¤èªk¬O
1.½Ð¤H¼g Customer-maid µ{¦¡¡C
2.¥ÎExcel ·í°µ word ¥Î¡A¥Ñ Excel °µ¡A±qSheet1°µ¨ì Sheet2¥h¡C
§Ú¨M©w±Ä¥Î2ªk¥ý°µ¤@¤U¡A¬Ýª¬ªp¦p¦ó¡C¦³²~ÀV¦A divide ¥X¨Ó¡A½Ðª©¤W¤j®a¨ÓÀ°¦£ Conquer.
§@ªÌ:
hugh0620
®É¶¡:
2011-5-3 17:00
¥»©«³Ì«á¥Ñ hugh0620 ©ó 2011-5-3 17:17 ½s¿è
¦^´_
3#
Baracuda
³oÓ°ÝÃD~¤j·§¥i¥HÀ°§A¸Ñ¨M~
¤£¹L¦³ÂI»Ýn¼á²M¤@¨Ç°ÝÃD
°ÝÃD¦³3¡A¦p¤U¡A¤£¨D¯à°÷§¹¥þ¸Ñ¨M
1.¥i§_¾Þ§@ª½±µ®M¦L¥X³f³æ¸¹¡B«~¦W¡B¼Æ¶q¡B³æ»ù¡Bª÷ÃB¡A¦ý¦P¤@±i¥X³f³æ¡A¥u¦³¤@¦ìqÁʫȤá¡A©Ò¥H¥un¥X²{¤@¦¸¡C
2.¦pªG¦P®É¦³3±i¥X³f³æn¦L¡A¥i§_¨Ì¥X³f³æ¸¹¤£¦P®É¡A§PÂ_»Ýn´«¶¦C¦L¡C
Q:¼Ó¥Dªº·N«ä¬O§_¥un¥X³f³æ¸¹¤£n¼Ë´N¦C¦L¤@±i·sªº~ ¤£¥Î¤@±i¦C¦L«Ü¦h¥X³f³æ¸¹??
3.¥i§_¦³·í¶¥X³f³æªº¦Xp¼Æ¥i¥H¦C¦L¤W¥h(³oÓ¦pªG¤£¦æ¡AÁÙ¥i¥H¦Û¤w¥[¹L¤â¼g¤W¥h)
A:³oÓ°ÝÃD¤ñ¸û²³æò~ ¨Ã¤£§xÃø
¼Ó¥D~ ¦³¬Ý¹L±zWORDÀɪº¿é¥X½d¥»~ ¦pªG¬O³o¼Ë~ «Øij±z´Nª½±µ¦bEXCEL°µ¿é¥X¦C¦LªºªF§@~
¤Ï¦Ó·|§ó²³æ¤@ÂI
¦pªþ¥óªº¤è¦¡¬O§_¥i¥Hº¡¨¬±zªº»Ý¨D©O?? (Y¥i¥H¤~¨Ó¼¶¼gµ{¦¡½X)
[attach]5950[/attach]
§@ªÌ:
mark15jill
®É¶¡:
2011-5-3 17:22
mark15jill ÁÂÁ¡A³oÓ¤j·§¥u¯àÁÂÁ¤F¡C
Baracuda µoªí©ó 2011-5-3 16:34
¤£¦n·N«ä ¯à¤O¤£¨¬ ¶È¯à´£¨Ñ²©ö«Øij...
§Ú¬O·Q¦pªG¤£¬O»¡ ¶W¯Å«æ¥ó(´N¬Oµu®É¶¡n) ªº¸Ü ˬO¥i¥H¥Î¥H¤U¤èªk...
¥Îvba ±N¿z¿ï¥X¨Óªº¸ê®Æ ¥á¥h¤@Ó©T©w®æ¦¡ªºexcelÀÉ®×(¹w¥ý´Nn«Ø¥ß¦n)
³o¼Ëªº¸Ü °²¨Ï©T©w®æ¦¡½T©w¥i¥H¦L¥X¼Ó¥D·Qnªº¸ê®Æªº¸Ü
´N¤ñ¸û¦n¿ì... ¦pªG¤£¦æ ¨º ¥i¯àÁÙ±o½Ð ½×¾Âªº³ü¨Ç¯«¤H¥X°¨¤F+.+
ps ¹ï©ó¼Ó¥D´£¨ìªº ¡§ ¦bª©±±¾«Ü¦h¤Ñªº¸Ü ¨S¤H¦^À³´N¬O¨S±Ï¡¨
Ãö©ó³oÂI¡A§Ú¥u¯à»¡ ¯àªº¸Ü °£¤F¦b³o´£°Ý¥~ ¥i¥H¥hgoogle §ä³ü¨Ç¬ÛÃöªº¤è¦¡
¨Ã¤£¬O»¡³oÃä«ç¼Ë ¦Ó¬O ¦³¨Ç®ÉÔ ¦Û¤v§äªº ¤Ï¦Ó¤ñ¸ûª¾¹D«ç¥h³B²z...
§@ªÌ:
Hsieh
®É¶¡:
2011-5-3 23:59
¦^´_
4#
Baracuda
³o¼Ë¥Î¦X¨Ö¦C¦L¦n¹³¤£¬O«Ü¦X¾A
ª½±µ¥ÎEXCEL¿é¥X¥X³f³æ¤ñ¸û²³æ
Sub ex()
Dim Ar(), A As Range, C As Range
With Sheet2
For Each A In .Range(.[A2], .[A65536].End(xlUp))
With Sheet1
For Each C In .Range(.[A2], .[A65536].End(xlUp))
If C = A Then
ReDim Preserve Ar(s)
Ar(s) = Array(A.Offset(, 1).Value, A, C.Offset(, 1).Value, C.Offset(, 2).Value, C.Offset(, 3).Value, C.Offset(, 4).Value, C.Offset(, 5).Value)
s = s + 1
End If
Next
End With
With Sheet5
i = 0: .[F3] = A: .[B5:F9] = ""
Do Until i > UBound(Ar)
r = i Mod 5
.Cells(r + 5, 2).Resize(, 5) = Array(Ar(i)(2), Ar(i)(3), Ar(i)(4), Ar(i)(5), Ar(i)(6))
If r = 4 Or i = UBound(Ar) Then
.[F10] = r + 1 & "µ§¦@" & s & "µ§"
.PrintPreview
.[B5:F9] = ""
End If
i = i + 1
Loop
End With
With Sheet3 '¼g¤J¿é¥X¤º®e¤u§@ªí¡AY¤£±Ä¥Î¦X¨Ö¦C¦L¥i§R°£¦¹°Ï¬q
.[A65536].End(xlUp).Offset(1).Resize(s, 7) = Application.Transpose(Application.Transpose(Ar))
End With
s = 0: Erase Ar
Next
End With
End Sub
½Æ»s¥N½X
[attach]5955[/attach]
§@ªÌ:
Baracuda
®É¶¡:
2011-5-4 10:21
hugh0620ÁÂÁ¡A®æ¦¡¬O¤p¨Æ¡A¤j·§³£¥i¥H°µ¥X¨Ó¡C
§@ªÌ:
Baracuda
®É¶¡:
2011-5-4 10:23
Hsiehª©¥D¡G
§Ú¦³¸Õ¹L§AªºªF¦è¡A¸ê®Æ¥i¥H°µ¥X¨Ó¡CÁöµM§ÚÁÙ¤£¬O«Ü§¹¥þ©ú¥Õ¤º®e¡C
§Ú¼gªºVBA¤@©w¬O¨S¦³§Aªººë²¡C
ÁÂÁ§Aªº¦^µª¡A§Ú¬Ù¥h¤£¤Ö®É¶¡µo®i§Úªº VBA¡C
§@ªÌ:
Baracuda
®É¶¡:
2011-5-5 13:41
Hsieh¶W¯Åª©¥D§A¯uªº«Ü¯«¡A§Ú§â¾ãÓ¤º®e¬Ý§¹¤F¡C
§AªºVBA¡AÁÙ¦³¦Ò¼{¨ì¶W¹L5µ§¦C¦L¤Wªº°ÝÃD¡C
¨ä¥L¤@¨Ç½Ñ¦pn²Öp¡B®æ¦¡¡K³£ºâ¤p°ÝÃD¡C
§Aªº¸ê®Æ¤¤¡A¦³Ó¦a¤è§Ún½Ð±Ð§A
.Cells(r + 5, 2).Resize(, 5) =(Ar(i)(2), Ar(i)(3), Ar(i)(4), Ar(i)(5), Ar(i)(6))
³oÓ¦n¹³¬O2ºû°}¦Cªº¤è¦¡¡A§A¬O¤£¬O¥Î°}¦CAr()¥]°}¦Cªº¤è¦¡(¥t¥~ªº¤¸¯À2~5¡A0¬°qÁʫȤ᪺¦WºÙ¡A1¬O¥X³f³æ¸¹)¡C
³oӤ覡¦b³oùØ Work¡A¥u¬O§Ú¨S¬Ý¹L¦³¤H³o¼Ë¥Î¡C
§@ªÌ:
GBKEE
®É¶¡:
2011-5-5 14:13
³oӤ覡¦b³oùØ Work¡A¥u¬O§Ú¨S¬Ý¹L¦³¤H³o¼Ë¥Î
¥i·j´M
Array
¬Ý¬Ý
§@ªÌ:
Baracuda
®É¶¡:
2011-5-5 14:52
GBKEEª©¥D
¤@¯ë Array2ºû°}¦C¥Îªk¬OAr(i,2)¦ý³oùإΪº¬OAr(i)(2)¡C
³oÓ»yªk§Ú¨S¬Ý¹L¡A©Ò¥H·Q¸ò¥L½T©w¤@¤U¡C
ºô¸ô¤W§Ú¦³ Google ¹L¡A¶q¤Ó¤j¡A¤£®e©ö§ä³oÓ¯S©wªº»yªk¡C
Hsiehª©¥D¦³ÂI¬O¡u¤@©Û¥]¤@¸ô¡vªº¤è¦¡¡C
§@ªÌ:
GBKEE
®É¶¡:
2011-5-5 15:51
¦^´_
12#
Baracuda
¬O¤@ºû°}¦C, «D¤Gºû°}¦C.
Sub Ex()
Dim Ar(2), i%, y%, a
Ar(0) = Array(1, 2, 3, 4)
Ar(1) = Array("A", "B", "C", "D")
Ar(2) = Array("¥Ò", "¤A", "¤þ", "¤B")
For i = 0 To UBound(Ar)
For y = 0 To UBound(Ar(i))
[a1].Offset(i, y) = Ar(i)(y)
Next
Next
End Sub
½Æ»s¥N½X
§@ªÌ:
Baracuda
®É¶¡:
2011-5-6 10:04
GBKEEª©¥D¡AÁÂÁ¡C³o¼Ë§Úª¾¹D³oÓ°}¦Cªº»yªk¤F¡C
§@ªÌ:
user999
®É¶¡:
2012-5-9 10:26
½Ð°Ýª©¥D¡G
Y¦C¦L¤@¦¡¤TÁp,¦p¥X³f³æ ªí®æ²¤¦³¤£¦P,¤º®e¤@¼Ë¦C¦L¤T±i ¤@±i¦¬°õÁp,¤@±i¯d©³Áp,¤@±i¦s¬d,¸Ó¦p¦óקï,ÁÂÁÂ!
§@ªÌ:
zachary
®É¶¡:
2015-9-14 09:32
§ä¤F¦n¤[,²×©ó§ä¨ìÃþ¦üªº¸Ñ¨M¤èªk
¯u¬O¨ü±Ð¤F~
§@ªÌ:
aevilwitch
®É¶¡:
2016-9-9 08:57
¦^´_
7#
Hsieh
¶W¦n¥Îªº....®M¤@Ӫťժí´N¥i¥H¦L¥X©Ònªºªí³æ
¤ñ³sµ²¨ìWORD°µ¦X¨Ö¦C¦LÁÙÃÙ
Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)