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

¦p¦ó§Q¥Îvba¼¶¼g¤å¦rªºÃè®g¥\¯à,¦A­«·s¼g¤J·sÀɦW

¦p¦ó§Q¥Îvba¼¶¼g¤å¦rªºÃè®g¥\¯à,¦A­«·s¼g¤J·sÀɦW

Dear ¦U¦ì«e½ú :
¤p§Ì¦³¤@¤å¦rÀÉ,­n¦p¦ó§Q¥Îexcel¶}±Ò«á«ü©wRowData«_¸¹«á¤§¸ê®Æ¦æ¦C,¨ÃÃè®g¨ä«áªº¸ê®Æ«á,¦A¥t¦s·sÀÉ©O?


Ãè®g.zip (203 Bytes)

¦^´_ 1# cmo140497

¤£ª¾¹D¬O¤£¬O³o­Ó·N«ä?
  1. Sub nn()
  2. test = "RowData:"
  3. Open "Ãè®g.txt" For Input As #1
  4. Open "Ãè®g§¹¦¨.txt" For Output As #2
  5. Do While Not EOF(1)
  6.    Input #1, mystr
  7.    If mystr Like test & "*" Then Print #2, StrReverse(Replace(mystr, test, ""))
  8. Loop
  9. Close #1
  10. Close #2
  11. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

·PÁ¯«¤j¤jªº«ü±Ð,¦ý¤p§Ì°w¹ï©ó¥H¤U³o¦æ¤£¬Æ¤F¸Ñ,¥i§_½Ð¤j¤j©ú¥Ü¤@¤U
If mystr Like test & "*" Then Print #2, StrReverse(Replace(mystr, test, ""))
¦pªG¦browdata¥k°¼ªº¸ê®Æ,¤p§Ì·Q§â¥¦¤T­Ó¦r¤¸·í§@¤@­Ó¼Æ­È³æ¦ì¨Ó°µ¥ª¥kÃè®g,¤£ª¾¦p¦ó­×§ï?

TOP

¦^´_ 3# cmo140497
¸Õ¸Õ¬Ý
If mystr Like test & "*" Then Print #2, Format(StrReverse(Replace(mystr, test, "")), "000")

TOP

¦^´_ 4# GBKEE


    Dear GB¤j¤j :
¦n¹³¿é¥Xµ²ªG¬Û¦P,¥i§_½Ð±z¦A¨ó§U¤@¤U,·PÁÂ!

TOP

[ª©¥DºÞ²z¯d¨¥]
  • Hsieh(2011-3-25 08:28): ½Ð§â§A­nªº®ÄªG¤â°Ê¿é¤J¥Ü½d

·PÁ¤j¤j©âªÅ«ü±Ð,¤p§Ì¥i¯àªí¹F¤£¬O«Üsmart,¤p§Ì·Q­n°µ¤T­Ó¦r¤¸¬°¤@²Õ°µ¥ª¥kªºÃè®g,¤£¬O¦r¤¸ªºÃè®g,¤£ª¾¬O§_¥i¦æ,ÁÂÁÂ!

TOP

¦^´_ 2# Hsieh


    ¤£¦n·N«ä,¦A¦¸¥´ÂZ±z,¦p¤U°ÝÃD
RowData:___ ___ ___ 123 ___ 456 ___ 789
RowData:___ abc ___ def ___ ___ ___ ghi ___ jkl
Ãè®g :
RowData:789 ___ 456 ___ 123 ___ ___ ___
RowData:jkl ___ ghi ___ ___ ___ def ___ abc ___
¨ä¹êÀ³¸ÓÁ¿¦¨³Ì¥kÃä¦ì§}Åܦ¨³Ì¥ªÃä,³Ì¥ªÃäÅܦ¨³Ì¥kÃ䪺¦ì§},¤£¬O¦r¤¸ªºÃè®g,789ÅÜ987,¤ï¶Õ,¦A«×³Â·Ð¤j¤jªº«ü¥¿,ÁÂÁÂ!

TOP

¦^´_ 7# cmo140497
  1. Sub Ex()
  2.     Dim Text As String, MyStr As String, Ar, i As Integer, A As String
  3.     Text = "RowData:"
  4.     Open "Ãè®g.txt" For Input As #1
  5.     Open "Ãè®g§¹¦¨.txt" For Output As #2
  6.         Do While Not EOF(1)
  7.             Input #1, MyStr
  8.             A = ""
  9.             If MyStr Like Text & "*" Then
  10.                 Ar = Split(Replace(MyStr, Text, ""), " ")
  11.                 For i = UBound(Ar) To 0 Step -1
  12.                     A = A & " " & Ar(i) & " "
  13.                 Next
  14.                 Print #2, Text & A
  15.             End If
  16.         Loop
  17.     Close #1
  18.     Close #2
  19. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¦a¤WºØ¤Fµæ¡A´N¤£©öªø¯ó¡F¤ß¤¤¦³µ½¡A´N¤£©ö¥Í´c¡C
ªð¦^¦Cªí ¤W¤@¥DÃD