返回列表 上一主題 發帖

[發問] 請問篩選後的結果如何複製

回復 1# cksmark129
  1. Sub ex()
  2. 工作表2.[A:B].ClearContents
  3. With 工作表1
  4. mystr = InputBox("輸入準則", , 2)
  5. With .Range("A1").CurrentRegion
  6.    .AutoFilter 1, "=" & mystr
  7.    .SpecialCells(xlCellTypeVisible).Copy 工作表2.[A1]
  8.    .AutoFilter
  9. End With
  10. End With
  11. End Sub
複製代碼
學海無涯_不恥下問

TOP

        靜思自在 : 要用心,不要操心、煩心。
返回列表 上一主題