ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¥X³f³æ¦X¨Ö¦C¦L¿é¥X°ÝÃD¡A¦³µLª½±µ¾Þ§@¤èªk¡A©Î»Ý±Ä¥ÎVBA¸Ñ¨M¡C

¥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¡G­q³æ­n¥X³fªº¤º®e
¡u¥X³f³æ«È¤á¡v¡G­q³æ¬O¨º¦ì«È¤á­qÁʪº
¡u¿é¥X¤º®e¡v¡G­nµ¹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¥u­n¥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³æªº¦X­p¼Æ¥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

¥X³f.zip (10.86 KB)

¦^´_ 7# Hsieh

¶W¦n¥Îªº....®M¤@­ÓªÅ¥Õªí´N¥i¥H¦L¥X©Ò­nªºªí³æ
¤ñ³sµ²¨ìWORD°µ¦X¨Ö¦C¦LÁÙÃÙ

TOP

§ä¤F¦n¤[,²×©ó§ä¨ìÃþ¦üªº¸Ñ¨M¤èªk
¯u¬O¨ü±Ð¤F~

TOP

[ª©¥DºÞ²z¯d¨¥]
  • GBKEE(2015/9/14 10:04): ­n¤W¶ÇÀɮ׬ݬÝ

½Ð°Ýª©¥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¦ó­×§ï,ÁÂÁÂ!
max

TOP

GBKEEª©¥D¡AÁÂÁ¡C³o¼Ë§Úª¾¹D³o­Ó°}¦Cªº»yªk¤F¡C

TOP

¦^´_ 12# Baracuda
¬O¤@ºû°}¦C, «D¤Gºû°}¦C.
  1. Sub Ex()
  2.     Dim Ar(2), i%, y%, a
  3.     Ar(0) = Array(1, 2, 3, 4)
  4.     Ar(1) = Array("A", "B", "C", "D")
  5.     Ar(2) = Array("¥Ò", "¤A", "¤þ", "¤B")
  6.     For i = 0 To UBound(Ar)
  7.         For y = 0 To UBound(Ar(i))
  8.             [a1].Offset(i, y) = Ar(i)(y)
  9.         Next
  10.     Next
  11. End Sub
½Æ»s¥N½X

TOP

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

TOP

³o­Ó¤è¦¡¦b³oùØ  Work¡A¥u¬O§Ú¨S¬Ý¹L¦³¤H³o¼Ë¥Î
¥i·j´M Array ¬Ý¬Ý

TOP

Hsieh¶W¯Åª©¥D§A¯uªº«Ü¯«¡A§Ú§â¾ã­Ó¤º®e¬Ý§¹¤F¡C
§AªºVBA¡AÁÙ¦³¦Ò¼{¨ì¶W¹L5µ§¦C¦L¤W­­ªº°ÝÃD¡C
¨ä¥L¤@¨Ç½Ñ¦p­n²Ö­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

TOP

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

TOP

        ÀR«ä¦Û¦b : ¯u¥¿ªº·R¤ß¡A¬O·ÓÅU¦n¦Û¤vªº³oÁû¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD