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

[µo°Ý] ­«½Æ·Ó¤ù®æ¦¡¶K¤WExcel

[µo°Ý] ­«½Æ·Ó¤ù®æ¦¡¶K¤WExcel

¥Ø«e¦³¤@°ï®æ¦¡¬Û¦Pªº¤å¥ó»Ý­n³B²z

¬ù¦³1¤dµ§ http://1drv.ms/1pi6g2x


(¤G. ²Õ¥ß¨BÆJ:)¤å¦r¤W¤è ¬O¨Ó¦¹ÀÉ®× http://1drv.ms/1pi7LOe


(¤G. ²Õ¥ß¨BÆJ:) ¤å¦r¤U¤è ¬O¨Ó¦Û¦P¤@¸ê®Æ§¨ªº·Ó¤ù

´X¥G¼Ò¦¡³£¤@¼Ë ¥u¬OÀɮפ£¤@¼Ë ·Ó¤ù¤£¤@¼Ë

­n§ïªº¥u¦³²Õ¥ß·Ó¤ù¥k¥b³¡¤å¦r


¥t¥~ ¥Ø«e·s¼W¥\¯à ¦pªG¤¤¶¡¦A´¡¤J¨BÆJªº¸Ü ¨BÆJ¸¹½X·|¦Û°Ê¦A¸õ¸¹¤£¥²¤â°Ê­×§ï!

¾ã­ÓÀɮ׳¡¤À¤º®e©ñ¸m¹Ï¤@

§¹¾ãÀɮשñ¸m¦b³Ì«á¤@­¶

¦ý¬O¼g§¹VBA ¤£ª¾¹D¥X¤F¬Æ»ò°ÝÃD ¤´µMµLªk¨Ï¥Î?

¦¨ªG¬O§Æ±æ¦p¦¹ÀÉ®× http://1drv.ms/1AnLV1s


Sub Ex()
Dim Fs As Object, E, i As Integer, P, ii As Integer
With CreateObject("Scripting.FileSystemObject").GetFolder("d:\¬Û¤ù\") '<-­×§ï
¬°§A­n¬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

¥Ø«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§Ú´y­z¤£²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:\¬Û¤ù\") '<-­×§ï
¬°§A­n¬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¸Ñµª!

TOP

¦^´_ 2# cj044
¥i±NExcelÀɮשñ¦bÀ£ÁYÀɤ¤¤W¶Ç
½Ð»¡¥X¿ù»~ÂI¦b­þ¸Ì??

³o¬qµ{¦¡½X ±NSheetsªº¦WºÙ ­×§ï¬°¥Ø¿ý¦WºÙ
  1. If i > ActiveWorkbook.Sheets.Count Then
  2. Sheets.Add(, Sheets(Sheets.Count)).Name = E.Name
  3. Else
  4. Sheets(i).Name = E.Name '<-·sÀɦW¨ú¥N«~¦W¥H¤ÎÂÂÀɦW
  5. End If
½Æ»s¥N½X
¬O³o¸Ì¿ù»~¶Ü? §ä¤£¨ì ¦WºÙ"Sheet1"
  1. Set St = ThisWorkbook.Worksheets("Sheet1")
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¯à·F¤£·F¡A¤£¦p­W·F¹ê·F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD