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

Excel 2010 Âà¸mtxtÀɨD§U

¥»©«³Ì«á¥Ñ luhpro ©ó 2013-6-30 22:28 ½s¿è

¦^´_ 1# kulisung
Ãö©óŪÀɪºµ{¦¡³o¸Ì´N¤£ÂØ­z¤F,
¶È´£¨Ñ¦Û¤v·Qªº¸ê®Æ¦s©ñ¦ì¸m³B²z¤è¦¡: (d(lpos) ¬O§Q¥Î Dictionary ¨Ó¯Á¤Þ¸Ó¸ê®Æ¦s©ñªºÄæ¦ì)

ŪÀÉ...
lrow = 2 ' ¦C 1 ¬°¼ÐÃD¦C
icol = 1 ' ¸ê®Æ±q²Ä 1 Äæ¶}©l©ñ, °²³]¨Cµ§¸ê®Æ Title ¤å¦r³£¬Û¦P
sStr = Ū¨úªº¤@µ§¸ê®Æ¤º®e

Do While EOF(1)
  Do While Left(sStr, 5) <> "-----"
   lpos = InStr(1, sStr, ":")
    stitle = Trim(Left(sStr, lpos - 2))
    If d(lpos) = "" Then
      Cells(1, icol) = stitle
      icol = icol + 1
    End If
    sData = Trim(Mid(sStr, lpos + 2, Len(sStr) - lpos))
    sStr = Ū¨úªº¤@µ§¸ê®Æ¤º®e
  Loop
  lrow = lrow + 1
Loop

' ÃöÀÉ

TOP

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