¦p¦ó¨Ï¥Î°}¦C¨ì¤£¦Psheet§ì¨ú¸ê®Æ
- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 106
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-5-3
               
|
¦^´_ 1# yueh0720 - Private Sub Update_Click()
- Dim y&, xR As Range, uP$, uF$, Ar(), Sh As Worksheet
- uP = ThisWorkbook.Path & "\"
- Application.ScreenUpdating = False
- With Sheet1
- For Each xR In .Range(.[A2], .[A65536].End(3)).SpecialCells(xlCellTypeConstants)
- If Dir(uP & xR) = "" Then GoTo 101
- With Workbooks.Open(uP & xR)
- For Each Sh In .Sheets
- With Sh
- ReDim Preserve Ar(s)
- Ar(s) = Array(.[C5].Value, .[D10].Value, .[J21].Value, .[J26].Value)
- s = s + 1
- End With
- Next
- .Close 0
- End With
- xR.Offset(, 1).Resize(s, 4) = Application.Transpose(Application.Transpose(Ar))
- Erase Ar: s = 0
- 101: Next
- End With
- End Sub
½Æ»s¥N½X |
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|