ireland13752
Member
Hello,
I need to select the next cell from A1 using a Macro that will use filters for data and then input with drop down to last row.
The issue I am running into is that the data will be in different rows everytime. The filter will remain the same and in the same column but it may be in row 9 today and row 2 next week.
See below for current code.
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$AS$68").AutoFilter Field:=31, Criteria1:= _
"Liver County Midevil Center"
Range("A9").Select
ActiveCell.FormulaR1C1 = "LCMC"
Range("A2").Select
lastrow = Range("C35000").End(xlUp).Row
Selection.AutoFill Destination:=Range("A2:A" & lastrow)
I need the --Range("A9").Select-- to not reference the cell specifically but instead go to the next nonfiltered cell after A1. I tried R2C1 but am not sure how to apply it.
Seems like an easy one, maybe I am just having a brain fade moment... Thanks for your help
I need to select the next cell from A1 using a Macro that will use filters for data and then input with drop down to last row.
The issue I am running into is that the data will be in different rows everytime. The filter will remain the same and in the same column but it may be in row 9 today and row 2 next week.
See below for current code.
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$AS$68").AutoFilter Field:=31, Criteria1:= _
"Liver County Midevil Center"
Range("A9").Select
ActiveCell.FormulaR1C1 = "LCMC"
Range("A2").Select
lastrow = Range("C35000").End(xlUp).Row
Selection.AutoFill Destination:=Range("A2:A" & lastrow)
I need the --Range("A9").Select-- to not reference the cell specifically but instead go to the next nonfiltered cell after A1. I tried R2C1 but am not sure how to apply it.
Seems like an easy one, maybe I am just having a brain fade moment... Thanks for your help