I am wanting to create a filter for just Column AG in a worksheet titled "Darren" based off cell C8 in a worksheet titled "Control Sheet". The cell I want to reference is a value.
Below is the VBA code that I am currently using but every time I run the Macro is returns a message saying "Compile Error: Syntax Error" . Hopefully someone can help me out!
Sub Darren()
'
' Darren Macro
'
'
ActiveSheet.Range("$AG$2:$AG$2000").Autofilter Field:=33, Criteria1:=Worksheets("Control Sheet").Range("C8").Value.
Below is the VBA code that I am currently using but every time I run the Macro is returns a message saying "Compile Error: Syntax Error" . Hopefully someone can help me out!
Sub Darren()
'
' Darren Macro
'
'
ActiveSheet.Range("$AG$2:$AG$2000").Autofilter Field:=33, Criteria1:=Worksheets("Control Sheet").Range("C8").Value.