EliseFreedman
Programmer
I am writing code to format a spreadsheet. It was working fine but now I am getting errors and I dont know why.
A typical block of code is
<code>
Range("Y20").Select
Selection.AutoFilter
Selection.AutoFilter Field:=25, Criteria1:="1"
With Columns("Z:Z").Interior
.ColorIndex = 37
.Pattern = xlSolid
End With
Range("Z1").Select
Selection.Interior.ColorIndex = xlNone
Selection.AutoFilter
</code>
It is highlighting the line with Columns ("Z:Z").Interior
and I am getting an error about the wrong number of arguments or invalid property assignment
Any advice about what is causing this would be greatfully appreciated
Elise
A typical block of code is
<code>
Range("Y20").Select
Selection.AutoFilter
Selection.AutoFilter Field:=25, Criteria1:="1"
With Columns("Z:Z").Interior
.ColorIndex = 37
.Pattern = xlSolid
End With
Range("Z1").Select
Selection.Interior.ColorIndex = xlNone
Selection.AutoFilter
</code>
It is highlighting the line with Columns ("Z:Z").Interior
and I am getting an error about the wrong number of arguments or invalid property assignment
Any advice about what is causing this would be greatfully appreciated
Elise