- ©«¤l
- 3
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 5
- ÂI¦W
- 0
- §@·~¨t²Î
- windws
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-7-28
- ³Ì«áµn¿ý
- 2021-6-24
|
¥Ø«e¦³¤@°ï®æ¦¡¬Û¦Pªº¤å¥ó»Ýn³B²z
¬ù¦³1¤dµ§ http://1drv.ms/1pi6g2x
(¤G. ²Õ¥ß¨BÆJ¤å¦r¤W¤è ¬O ...
cj044 µoªí©ó 2014-7-29 14:57
¥i¯à¬O§Ú´yz¤£²M·¡
§Ú«·s¦APO¤@½g¤å³¹!
³nÅé:Excel
ª©¥»:2007
¾ãÓì©lÀɮ׳¡¤À http://1drv.ms/1lUW4sU
ª«®ÆªíÀÉ®×http://1drv.ms/1lUWdMT
³W®æ¤º®e»Ý¨Dhttp://1drv.ms/1qK0tGD
µ{¦¡³¡¤À
Sub Ex()
Dim Fs As Object, E, i As Integer, P, ii As Integer
With CreateObject("Scripting.FileSystemObject").GetFolder("d:\¬Û¤ù\") '<-קï
¬°§An¬d¸ß¤§¸ê®Æ§¨°²³]¦bd¼Ñ
i = 1
For Each E In .SubFolders
If i > ActiveWorkbook.Sheets.Count Then
Sheets.Add(, Sheets(Sheets.Count)).Name = E.Name
Else
Sheets(i).Name = E.Name '<-·sÀɦW¨ú¥N«~¦W¥H¤ÎÂÂÀɦW
End If
ii = 1
For Each P In E.Files
If InStr(UCase(P.Name), ".JPG") Then
With Sheets(i).Pictures.Insert(P)
.Top = Cells(ii, 2).Top
.Left = Cells(ii, 2).Left
.Width = 50
.Height = 50
End With
ii = ii + 5
End If
Next
i = i + 1
Next
Dim St As Worksheet: Set St = ThisWorkbook.Worksheets("Sheet1")
Dim Mx
Workbooks.Open "D:\Book2.xls"°²³]¦bÀɦW¬°Book2
Mx = Range(St.[A1], St.[C10])
Workbooks("Book2").Sheets("Sheet1").[A1].Resize(UBound(Mx, 1), UBound(Mx, 2))
= Mx
Workbooks("Book2").Close True
End With
End Sub
¤£ª¾¹D¬O¦³bug? ¬°¦óµLªk±Ò°Ê? ·PÁ¤j¤j¸Ñµª! |
|