Hello
I have a spreadsheet with multiple columns that after filtering column G I want to copy those lines onto another spreadsheet. My hurdle is that those lines vary, it could be one, ten, etc. Without getting into too much detail here is part of the code. Essentially I want to copy any lines that have "Type of Cash Dividend: Special Cash" in the cell. Any direction would be greatly appreciated.
Rows("1:1").Select
Selection.AutoFilter
ActiveCell.FormulaR1C1 = " Type of Cash Dividend: Special Cash"
ActiveSheet.Range("$A$1:$M$141").AutoFilter Field:=7, Criteria1:= _
"=Type of Cash Dividend: Special Cash", Operator:=xlAnd
I have a spreadsheet with multiple columns that after filtering column G I want to copy those lines onto another spreadsheet. My hurdle is that those lines vary, it could be one, ten, etc. Without getting into too much detail here is part of the code. Essentially I want to copy any lines that have "Type of Cash Dividend: Special Cash" in the cell. Any direction would be greatly appreciated.
Rows("1:1").Select
Selection.AutoFilter
ActiveCell.FormulaR1C1 = " Type of Cash Dividend: Special Cash"
ActiveSheet.Range("$A$1:$M$141").AutoFilter Field:=7, Criteria1:= _
"=Type of Cash Dividend: Special Cash", Operator:=xlAnd