I keep getting else without if error even though it's pretty simple code so not sure what I'm missing.
The aim is to just sort through column W from top to bottom, if it is not empty then it needs to be set to empty, if it is already empty then move on to the next row. This is what my code is:
Sub emptycolumn()
Dim i as integer
Dim last_row as Integer
'find the last row number
last_row = Cells(Row.Count, 1).End(xlUp).Row
For i = 2 To last_row
If Range("w" & i).Value <> "" Then Range("w" & i).Value = ""
Else:
End If
Next i
End Sub
Else:, remove it.