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

EXCEL§ì¨úCSV¸ê®Æ¨Ã§Y®É§ó·s

¦^´_ 2# bqwangs
¸ê®Æ>¨ú±o¥~³¡¸ê®Æ>±q¤å¦rÀÉ

TOP

¦^´_ 1# bqwangs
¥D­n¬OEXCELÀÉ®×·|¤@ª½¶}µÛ
¦ýCSVÀÉ®× ¤£·|¶}±Ò ¦ý¤º®e¸ê°T ·|¦³§ó·s

©Ò¥H§Æ±æEXCEL§ì¨úCSV¸ê°T®É
CSV¬O§K¶}Àɪº¤è¦¡§ì¨ú©ÎÁô¦¡¶}±Òªº¤è¦¡

´Á«Ý¦U¦ì¤j¤jªº±Ð¾É

TOP

¦^´_ 9# stillfish00

stillfish00¤j¤j
¬Oªº¨S¿ù
«D±`·PÁÂ
¾Ç¨ì¤£¤ÖªF¦è
¤p¤Hª«

TOP

¦^´_ 8# jasonwu0114
§Ú¦n¹³»~·|§Aªº·N«ä¤F¡A¬O³o¼Ë¶Ü?
  1. Sub nn5()
  2.   Dim x
  3.   With Sheets("¤u§@ªí1")
  4.     For Each x In .Range(.[A3], .Cells(.Rows.Count, "A").End(xlUp)).Offset(, 3)
  5.       x.Value = ExecuteExcel4Macro("'X:\­·ºÞ³øªí\¥æ´«³¡¦ìµû»ùªí\[IRS³¡¦ìµû»ùªí" & x.Offset(, -3).Value & ".xls]³¡¦ìµû»ùªí'!R1C13")
  6.     Next
  7.   End With
  8. End Sub
½Æ»s¥N½X

TOP

¦^´_ 7# stillfish00
¤£¦n·N«äÁÙ­n¦A³Â·Ð
°õ¦æ«áÁÙ¬O¥HA3¬°°Ñ¼Æ¥h§ì¸ê®Æ
  1. .FormulaR1C1 = "='X:\­·ºÞ³øªí\¥æ´«³¡¦ìµû»ùªí\[IRS³¡¦ìµû»ùªí" & .Parent.[A3].Value & ".xls]³¡¦ìµû»ùªí'!R1C13"
½Æ»s¥N½X
À³¸Ó¬O­n§ï³o.Parent.[A3]¶Ü
¦p¦ó§ï??

·P®¦!!
¤p¤Hª«

TOP

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2013-12-18 18:30 ½s¿è

¦^´_ 6# jasonwu0114
  1. Sub nn4()
  2.   With Sheets("¤u§@ªí1")
  3.     With .Range(.[A3], .Cells(.Rows.Count, "A").End(xlUp)).offset(,3)
  4.       .FormulaR1C1 = "='X:\­·ºÞ³øªí\¥æ´«³¡¦ìµû»ùªí\[IRS³¡¦ìµû»ùªí" & .Parent.[A3].Value & ".xls]³¡¦ìµû»ùªí'!R1C13"
  5.       .Value = .Value
  6.     End With
  7.   End With
  8. End Sub
½Æ»s¥N½X
.Rows.Count  :  Excel³Ì¤j¦æ¼Æ
.Cells(.Rows.Count, "A")  :  AÄæ³Ì¤U­±¤@®æ
.Cells(.Rows.Count, "A").End(xlUp)  :  ±qAÄæ³Ì¤U­±¤@®æ©¹¤W§ä¨ì¦³¸ê®ÆªºÀx¦s®æ
.Range(.[A3], .Cells(.Rows.Count, "A").End(xlUp))  :  ±qA3¨ìAÄæ³Ì«á¤@µ§¸ê®Æ§Î¦¨ªº½d³ò
.Range(.[A3], .Cells(.Rows.Count, "A").End(xlUp)).offset(,3)  :  ±qA3¨ìAÄæ³Ì«á¤@µ§¸ê®Æ§Î¦¨ªº½d³ò¡A³o½d³ò¦A©¹¥k²¾°Ê¤TÄæ

TOP

¦^´_ 5# stillfish00

¼F®`¼F®`
¤S¾Ç¨ì¦n´X©Û
¥i¬OÁÙ¦³¤@ÂI°ÝÃD
D3~8Äæ¦pªG­ì¥»¬OªÅ®æ°õ¦æ«áD1~D3·|¶ñ¥HA3¬°°Ñ¼Æ§ä¨ìªº¸ê®Æ
               ¦pªG¦³¼Æ¦r°õ¦æ«áD3~D8·|¶ñ¥HA3¬°°Ñ¼Æ§ä¨ìªº¸ê®Æ
­n§ï­þ??
ÁÙ¦³    With .Range(.[D3], .Cells(.Rows.Count, "D").End(xlUp))  ªº·N«ä??

   
¤p¤Hª«

TOP

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2013-12-18 12:45 ½s¿è

¦^´_ 4# jasonwu0114
  1. Sub nn4()
  2.   With Sheets("¤u§@ªí1")
  3.     With .Range(.[D3], .Cells(.Rows.Count, "D").End(xlUp))
  4.       .FormulaR1C1 = "='X:\­·ºÞ³øªí\¥æ´«³¡¦ìµû»ùªí\[IRS³¡¦ìµû»ùªí" & .Parent.[A3].Value & ".xls]³¡¦ìµû»ùªí'!R1C13"
  5.       .Value = .Value
  6.     End With
  7.   End With
  8. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ jasonwu0114 ©ó 2013-12-18 11:35 ½s¿è

¤£¦n·N«ä¤w¸Ñ¨M¦p¤U
½Ð°ÝÁÙ¥i¥H¼gªº§óSMART¶Ü??
¥t¥~yy = "'X:\­·ºÞ³øªí\¥æ´«³¡¦ìµû»ùªí\[IRS³¡¦ìµû»ùªí" & kk & ".xls]³¡¦ìµû»ùªí'!R1C13"
R1C13³o¸Ì¥u¯à¬O³æ¤@Äæ¦ì¶Ü??

Sub nn4()
Dim yy As String
Dim kk As Range
Set kk = Sheets("¤u§@ªí1").Range("A3")
Do While kk <> ""
    yy = "'X:\­·ºÞ³øªí\¥æ´«³¡¦ìµû»ùªí\[IRS³¡¦ìµû»ùªí" & kk & ".xls]³¡¦ìµû»ùªí'!R1C13"
    kk.Offset(0, 3) = ExecuteExcel4Macro(yy)
    Set kk = kk.Offset(1)
Loop
End Sub
¤p¤Hª«

TOP

¥»©«³Ì«á¥Ñ jasonwu0114 ©ó 2013-12-17 16:29 ½s¿è

§ä¨ì¤ñ¸û²³æ¼gªk
·Q½Ð±Ð
°²¦psheet1AÄ榳¤@¨Ç¤é´Á
¬O§Ú­n§ìªºÀɮצWºÙ¤@³¡¤À(¬õ¦r³¡¤À)
[IRS¥æ©ö³¡¦ìµû»ùªí1021216.xls]
¦pªG­n§â¸ê®Æ§ì¦^©ñ¦bBÄæ­n¦p¦ó¼g¦p¦ó³]©wÅܼÆ??

¥t¥~
¤@¦¸¥u¯à§ì¤@­ÓÄæ¦ì¶Ü??

Sub nn()
[A1] = ExecuteExcel4Macro("'X:\­·ºÞ³øªí\§Q²v¥æ´«³¡¦ìµû»ùªí\[IRS¥æ©ö³¡¦ìµû»ùªí1021216.xls]³¡¦ìµû»ùªí'!R1C13")
End Sub
¤p¤Hª«

TOP

        ÀR«ä¦Û¦b : ¶¢¤HµL¼Ö½ì¡A¦£¤HµL¬O«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD