| ©«¤l4901 ¥DÃD44 ºëµØ24 ¿n¤À4916 ÂI¦W267  §@·~¨t²ÎWindows 7 ³nÅ骩¥»Office 20xx ¾\ŪÅv150 ©Ê§O¨k ¨Ó¦Û¥x¥_ µù¥U®É¶¡2010-4-30 ³Ì«áµn¿ý2025-10-31 
                
 | 
                
| ¦^´_ 1# hugh0620 ½Æ»s¥N½XPrivate Sub CommandButton1_Click()
Dim Ar()
With Application.FileDialog(msoFileDialogFolderPicker)
.Show
fd = .SelectedItems(1)
If .ButtonName = "½T©w" Then
fs = Dir(fd & "\*.xls")
Do Until fs = ""
fds = fd & "\" & fs
With Workbooks.Open(fds)
ReDim Preserve Ar(s)
Ar(s) = .Sheets(1).[A1].Value
s = s + 1
.Close 0
End With
fs = Dir
Loop
End If
End With
[B3].Resize(s, 1) = Application.Transpose(Ar)
End Sub
 | 
 |