½Ð±Ðª©¥D¤Î¦U¦ì¤j¤jÌ,¦p¦ó¨Ï¥Îautofilter ³s¦P·Ó¤ù¤]copy¦Ü¥Øªº¦a
- ©«¤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
        
|
¦^´_ 5# cmo140497
ª½±µ½Æ»s- Option Explicit
- Sub Ex()
- Dim mytbl As Range, myQry As Range, P As Pictures, I As Integer
- Application.ScreenUpdating = False
- With Sheets("¤u§@ªí1")
- .Activate
- .[a1].CurrentRegion.ClearContents
- .Range("J1", .[J1].End(xlToRight)).EntireColumn.Clear '²M°£Â¦³¸ê®Æ (Clear µLªk§R°£¹Ï¤ù)
- Set P = .Pictures '¹Ï¤ù¶°¦X
- For I = P.Count To 1 Step -1
- If Intersect(.Range(P(I).TopLeftCell.Address), .[F:F]) Is Nothing Then '¹Ï¤ù¦ì¸m¤£¦b FÄæ
- P(I).Delete '¹Ï¤ù §R°£
- End If
- Next
- Set mytbl = .[F:I]
- Set myQry = .[a1]
- mytbl.Columns(4).AdvancedFilter xlFilterCopy, copytorange:=myQry, unique:=True
- Set myQry = myQry.CurrentRegion
- For I = 2 To myQry.Rows.Count
- With mytbl
- .AutoFilter 4, myQry.Rows(I)
- .SpecialCells(xlCellTypeVisible).Copy
- .Parent.Cells(1, .Parent.Columns.Count).End(xlToLeft).Offset(, 1).Select
- .Parent.Paste
- 'ActiveSheet.Paste
- End With
- Next
- End With
- mytbl.AutoFilter
- myQry.Select
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|