- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 257
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-27
|
¦^´_ 1# hugh0620 - Private 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
½Æ»s¥N½X |
|