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

[µo°Ý] Â^¨ú³øªí¤¤©Ò»Ý¸ê®Æ

¥»©«³Ì«á¥Ñ asus103 ©ó 2011-1-3 16:35 ½s¿è

¦^´_ 20# Hsieh
Hsieh¤j¤j¡G
·PÁ±z
¤§«e§Ú»~¥H¬°d1(C) = ""¤¤C¬Ocontent
§Ú·Q¥¦À³¸Ó¬Oindex§a¡H
¦pªG¬O³o¼Ë¡A§ÚÀ³¸Ó¬Ý±oÀ´¤F

°²¦p§Ú»¡ªº¨S¿ù¡A±z´N¤£¥²®ö¶O±zÄ_¶Qªº®É¶¡¦^ÂÐ
­Y§Úªº·Qªk¦³¿ù¡A¦b³Â·Ð±z§iª¾

¦ýÄ@¦³¤@¤Ñ§Ú¤]¯à¼g¥X³o¼Ë¦³³Ð·Nªºµ{¦¡
µL­­ªº·P¿E
ASUS

TOP

ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
«á¾ÇÂǦ¹©«½m²ß°}¦C»P¦r¨å,¾Ç²ßªº¤è®×¦p¤U,½Ð¦U¦ì«e½ú«ü±Ð
°õ¦æµ²ªG:


Option Explicit
Sub TEST()
Dim Brr, Crr, Z, i&, j%, C%, N&, X%, T$, ¯Z¯Å$
¤u§@ªí2.UsedRange.ClearContents
Set Z = CreateObject("Scripting.Dictionary")
Brr = Range(¤u§@ªí1.[N1], ¤u§@ªí1.[B65536].End(3)(1, 0))
ReDim Crr(UBound(Brr), 1 To 20)
For i = 1 To UBound(Brr)
   Z(Application.Text(i, "[DBNum1]")) = i
   If Brr(i, 2) = "¾Ç¡@¸¹" Then
      ¯Z¯Å = Z(Mid(Brr(i - 2, 2), 2, 1)) & Mid(Brr(i - 2, 2), 4, 2)
      For j = 5 To UBound(Brr, 2)
         T = Brr(i, j): If T = "" Then C = j - 1: Exit For
         If Not Z.Exists(T) Then X = X + 1: Z(T) = X + 4: Crr(0, X + 4) = T
         Z(j) = Z(T)
      Next
   End If
   If Brr(i, 2) Like "######" Then
      N = N + 1: For j = 5 To 20: Crr(N, j) = -1: Next
      Crr(N, 1) = Brr(i, 2): Crr(N, 2) = Brr(i, 3): Crr(N, 3) = ¯Z¯Å: Crr(N, 4) = Brr(i, 4)
      For j = 5 To C: Crr(N, Z(j)) = Brr(i, j): Next
   End If
Next
With ¤u§@ªí2.[A1].Resize(N + 1, X + 4): .NumberFormat = "@": .Value = Crr: End With
¤u§@ªí2.[A1].Resize(, 4) = [{"¾Ç¡@¸¹","©m¦W","¯Z¯Å","®y¸¹"}]
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

        ÀR«ä¦Û¦b : §g¤l¬°¥Ø¼Ð¡A¤p¤H¬°¥Øªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD