- ©«¤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# sunshine010
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim Rng(1 To 2), Sh As Worksheet, i As Integer, E As Variant
- Set Sh = Workbooks.Add(1).Sheets(1) '©Ò·s¼W¬¡¶Ã¯ªº²Ä¤@±i¤u§@ªí
- For i = 2 To 33
- Set Rng(1) = Sheets(i).Range("B4:AG65536")
- Set Rng(2) = Sh.Range(Rng(1).Address)
- With Rng(2)
- .Clear
- .Value = Rng(1).Value '½Æ»sRng(1)
- End With
- For Each E In Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33)
- Rng(1).Columns(E).AdvancedFilter xlFilterCopy, "", Rng(2).Cells(E), True
- '¨C¤@Ä檺 ¶i¶¥¿z¿ï ¤£«½ÆªºÈ ¨ì Rng(2)ªº¨C¤@Äæ
- Next
- Rng(1).Value = Rng(2).Value
- Next
- Sh.Parent.Close False 'Ãö³¬·s¼W¬¡¶Ã¯
- End Sub
½Æ»s¥N½X |
|