½Ð±Ðª©¥D¤Î¦U¦ì¤j¤jÌ,¦p¦ó¨Ï¥Îautofilter ³s¦P·Ó¤ù¤]copy¦Ü¥Øªº¦a
- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 93
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-4-18
               
|
¦^´_ 1# cmo140497 - Sub ex()
- Set dic = CreateObject("Scripting.Dictionary")
- Dim MyQtb As Range, VRng As Range
- Set MyQtb = Range("A1").End(xlToRight).CurrentRegion
- Application.ScreenUpdating = False
- For Each pic In ActiveSheet.Pictures
- Set a = pic.TopLeftCell.Offset(, 1)
- m = a & a.Offset(, 1)
- Set dic(a & a.Offset(, 1)) = Pictures(pic.Name)
- Next
- For Each a In Range([A2], [A2].End(xlDown))
- With MyQtb
- .AutoFilter 4, a
- Set Rng = Cells(1, Columns.Count).End(xlToLeft).Offset(, 1)
- Set VRng = .SpecialCells(xlCellTypeVisible)
- VRng.Copy
- Rng.PasteSpecial xlPasteColumnWidths
- Rng.PasteSpecial Paste:=xlPasteValues
- .AutoFilter
- r = 1
- Do Until r > Rng.Offset(, 1).End(xlDown).Row - 1
- Set c = Rng.Offset(r, 0)
- dic(c.Offset(, 1) & c.Offset(, 2)).Copy
- c.Select
- ActiveSheet.Paste
- r = r + 1
- Loop
- End With
- Next
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|