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

[µo°Ý] ½Ð±ÐÃö©ó"¤£¥´¶}ExcelÀɮסA¼g¸ê®Æ¨ìÀx¦s®æ¸Ì"

¥»©«³Ì«á¥Ñ HSIEN6001 ©ó 2015-1-12 12:48 ½s¿è

¦^´_ 1# rbktwi


    ¨S¥´¶}ªºExcel"¬¡­¶Ã¯2"Àx¦s®æA1¸Ì,¿é¤J
=[¬¡­¶Ã¯1.xls]Sheet1!A1
or
='[¬¡­¶Ã¯1.xls]Sheet1'!A1

¥´¶}¬¡­¶Ã¯2®É,¦ý¨S¦³¶}±Ò¬¡­¶Ã¯1--->·|¸ß°Ý§ó·s & ¤£­n§ó·s
¨â­Ó¬¡­¶Ã¯³£¦³¶}±Ò,·|¦Û°Ê§ó·s

TOP

¦^´_ 3# rbktwi

Ãø²z¸Ñ¬O.... ¬¡­¶Ã¯2¦h? ....    ¬¡­¶Ã¯1³B²z§¹
¶Ç¤Wªþ¥ó°Ñ¦Ò,¤~¯à²z¸Ñ§A­nªº»Ý¨D

TOP

¦^´_ 5# rbktwi


    ¤£¥´¶},«ç»ò©ñ¤J¸ê®Æ???
  1. Sub ¦P¸ê®Æ§¨¤º¤j¶qÀɮצs¨ú()
  2.     Dim Path As String, file As String
  3.     Application.ScreenUpdating = False  'Ãö³¬«Ì¹õ§ó·s
  4.     Path = "C:\¸ê®Æ§¨\"                 '¨Ó·½¸ê®Æ§¨,¦Û¦æ­×¥¿
  5.     file = Dir(Path & "*.xls")          '¨Ó·½ÀɦW, ªí¥Üªk "*.xls" or "*.csv" or "ÃöÁä¦r*.xls"
  6.         Do While file <> ""
  7.             Application.DisplayAlerts = False       '¤@¯ë´£Äµ¥Ü°T®§Ãö³¬
  8.             With Workbooks.Open(Path & file)
  9.                 [A1] = "=[¬¡­¶Ã¯1.xls]Sheet1!A1"    '¬¡­¶Ã¯1.xls ¦WºÙ¦Û¦æ­×¥¿
  10.                 ActiveWindow.Close True
  11.             End With
  12.             file = Dir
  13.         Loop
  14. End Sub
½Æ»s¥N½X

TOP

¦^´_ 6# HSIEN6001

©êºp!¤Ö¤F¬õ¦r¨º¤@¦æ

    Sub ¦P¸ê®Æ§¨¤º¤j¶qÀɮצs¨ú()
    Dim Path As String, file As String
    Application.ScreenUpdating = False  'Ãö³¬«Ì¹õ§ó·s
    Path = "C:\¸ê®Æ§¨\"                 '¨Ó·½¸ê®Æ§¨,¦Û¦æ­×¥¿
    file = Dir(Path & "*.xls")          '¨Ó·½ÀɦW, ªí¥Üªk "*.xls" or "*.csv" or "ÃöÁä¦r*.xls"
        Do While file <> ""
            Application.DisplayAlerts = False       '¤@¯ë´£Äµ¥Ü°T®§Ãö³¬
            With Workbooks.Open(Path & file)
                [A1] = "=[¬¡­¶Ã¯1.xls]Sheet1!A1"    '¬¡­¶Ã¯1.xls ¦WºÙ¦Û¦æ­×¥¿
                ActiveWindow.Close True
            End With
            file = Dir
        Loop
    Application.ScreenUpdating = True   '¥´¶}«Ì¹õ§ó·s
End Sub

TOP

        ÀR«ä¦Û¦b : «Ý¤H°h¤@¨B¡A·R¤H¼e¤@¤o¡A´N·|¬¡±o«Ü§Ö¼Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD