- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 3# mankind0703 - Option Explicit
- Sub Ex()
- Dim Rng As Range, Wbo As Workbook
- Set Rng = Workbooks("s-total.xlsx").Sheets("sheet1").[a1] 's-total.xlsx ¨S¸ê®Æ
- 'Set Rng = Workbooks("s-total.xlsx").Sheets("sheet1").[a1].End(xlDown).Offset(1) 's-total.xlsx ¸ê®Æ³sÄò©¹¤U½Æ»s
- For Each Wbo In Workbooks
- If Wbo.Name <> Rng.Parent.Parent.Name Then 'Rng¬OÀx¦s®æ :ªº¤÷¼h(¬°¤u§@ªí)ªº¤÷¼h(¬°¬¡¶Ã¯)
- Wbo.Sheets("Sheet1").Range("A:A").SpecialCells(xlCellTypeConstants).CurrentRegion.Copy Rng
- '½d³ò: Wbo:¦U¬¡¶Ã¯.Sheets("¤u§@ªí").Range("AÄæ" ).SpecialCells(xlCellTypeConstants)(¦³¸ê®Æ).CurrentRegion(¥Ø«e°Ï°ì¬O«ü¥H¥ô·NªÅ¥Õ¦C¤ÎªÅ¥ÕÄ檺²Õ¦X¬°Ãä¬Éªº½d³ò)
- '½d³ò.Copy(½Æ»s) (ªÅ¤@®æ)Rng(½d³ò)
- Set Rng = Rng.End(xlDown).Offset(1)
- 'Rng ½d³ò.End(xlDown:"©¹¤U") ¨ì³Ì«á¦³¸ê®ÆªºÀx¦s®æ
- '½d³ò.Offset (¦ì²¾¦C¼Æ,¦ì²¾Äæ¼Æ) '±N½d³ò²¾°Ê¨ì«ü©w°Ï°ìªº½d³ò
- End If
- Next
- With Workbooks("s-total.xlsx").Sheets("sheet1").Cells
- .Replace "x", "=100/1", xlWhole '½Æ»s«á±N: x ¦r¦ê ´À´«¬°¤½¦¡
- .SpecialCells(xlCellTypeFormulas).Delete '§R°£¦³¤½¦¡ªºÀx¦s®æ
- End With
- End Sub
½Æ»s¥N½X |
|