I am trying to create a macro to change value of the visible cells in column Y from zCSS to zContractAdmin based on the value of column K. This is the macro I have tried to use but it's giving me error on Formula. Any help is greatly appreciated.
Code:
Sub Macro2()
Application.CutCopyMode = False
Selection.AutoFilter
ActiveWindow.LargeScroll ToRight:=1
ActiveSheet.Range("$A$1:$BR$32000").AutoFilter Field:=25, Criteria1:="zCSS"
Columns("Y:Y").Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.SpecialCells(xlCellTypeFormula).Formula="=IF((OR(K:K="C075",K:K="C099",K:K="C170",K:K="C228",K:K="D000",K:K="D060",K:K="D113")),"zContract Admin","zCSS")"
End Sub