Hi All,
Need your help with VBA code, I have to make changes to a column based on the filter selected in another column.
So I have to put/select filter in "column E" based on the filtered item need to rename all items in "column S"...
I have managed the below code but if 1 of the item is missing from the filter in "column E" the VBA just hangs....
Selection.AutoFilter
ActiveSheet.Range("$A:$V").AutoFilter field:=5, Criteria1:= _
"Assigned to Finance"
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Do Until ActiveCell.EntireRow.Hidden = False
ActiveCell.Offset(1, 0).Select
Loop
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Do Until ActiveCell.EntireRow.Hidden = False
ActiveCell.Offset(1, 0).Select
Loop
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "Finance"
Thanks for your help in advance.
Need your help with VBA code, I have to make changes to a column based on the filter selected in another column.
So I have to put/select filter in "column E" based on the filtered item need to rename all items in "column S"...
I have managed the below code but if 1 of the item is missing from the filter in "column E" the VBA just hangs....
Selection.AutoFilter
ActiveSheet.Range("$A:$V").AutoFilter field:=5, Criteria1:= _
"Assigned to Finance"
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Do Until ActiveCell.EntireRow.Hidden = False
ActiveCell.Offset(1, 0).Select
Loop
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Do Until ActiveCell.EntireRow.Hidden = False
ActiveCell.Offset(1, 0).Select
Loop
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "Finance"
Thanks for your help in advance.