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

´M§ä¯S©w¦r¤¸,¨Ã±N¤§«áªº¦r¤¸§ï¬°¤j¼g

¦^´_ 20# txiec
¤W¶Ç§Aªº¤å¦rÀɧ@»¡©ú
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 21# Hsieh


    DEAR Hsieh  

    ¦A³Â·Ð¤F.

data ¿ù»~Âà´« (2).rar (7.6 KB)

hi...

TOP

¦^´_ 22# txiec
  1. Sub Ex()
  2. fd = ThisWorkbook.Path & "\" '¤å¦rÀɥؿý
  3. fs = Dir(fd & "*.txt") '¥Ø¿ý¤¤ªº¤å¦rÀɦW
  4. Do Until fs = ""
  5. Open fd & "temp.txt" For Output As #2 '·Ç³Æ¼È¦sÀÉ
  6.   Open fd & fs For Input As #1 '¶}±Ò­nÂର¤j¼gªº¤å¦rÀɧ@¿é¤J¥Î
  7.   Do While Not EOF(1)
  8.    Line Input #1, mystr
  9.    If mystr Like "M/C(*),*" Then '¦pªG¸Ó¦r¦êÃþ¦ü¦¹¼Ë¦¡
  10.    restr = Mid(mystr, InStr(mystr, "),")) '¨ú±o­nÂର¤j¼gªº³¡¥÷¦r¦ê
  11.    mystr = Replace(mystr, restr, UCase(restr)) '±N­ìÅܼÆ
  12.    End If
  13.    Print #2, mystr '±N¤w¸gÂন¤j¼gªº¦r¦ê¼g¤J¼È¦sÀÉ
  14. Loop
  15. Close #1
  16. Close #2
  17. Open fd & fs For Output As #2 '¥´¶}»ÝÂà¼gªº¤å¦rÀɷdzƼg¤J
  18.   Open fd & "temp.txt" For Input As #1 '¶}±Ò¤wÂন¤j¼gªº¼È¦sÀÉ
  19.   Do While Not EOF(1)
  20.   Line Input #1, mystr 'Ū¥X¼È¦sÀɸê®Æ
  21.   Print #2, mystr '±N¼È¦sÀɦr¦ê¼g¤J»Ý­×§ïÀÉ®×
  22.   Loop
  23. Close #1
  24. Close #2
  25. Kill fd & "temp.txt" '§R°£¼È¦sÀÉ
  26. Loop
  27. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 23# Hsieh


    DEAR ..

     THS... §Ú¦A»°§ÖTRY ¬Ý¬Ý,,, ·PÁÂ..
hi...

TOP

        ÀR«ä¦Û¦b : ¤£­nÀH¤ß©Ò±ý¡A­nÀH¤ß±Ð¨|¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD