0

I need to copy a specific range after filtering.

Sub macros()
Dim newrange As Range, rw As Range
Set newrange = ActiveSheet.AutoFilter.Range.SpecialCells(xlCellTypeVisible)
Dim a As String
a = InputBox("Number")
ActiveSheet.Range("$A$5:$V$121").AutoFilter Field:=8, Criteria1:=a

Sheets("ABV 3").Select
ActiveSheet.Range("$A$5:$V$126").AutoFilter Field:=8, Criteria1:=a

Sheets("ABV 3 FFF").Select
Range("H6:S6").SpecialCells(xlCellTypeVisible).Select

Selection.Copy
Sheets("ABV 3").Select
Range("H6").SpecialCells(xlCellTypeVisible).Select
ActiveSheet.Paste
End Sub

In the filter, I set a number and I need to select the range from H to S. How can I do this????

Tim Williams
  • 154,628
  • 8
  • 97
  • 125
grmnv
  • 1
  • 2

0 Answers0