[VBA]Sub fsdfgs()

Dim i As Long
Dim area As Range
Dim j As Long
Dim k As Long

i = InputBox("Give the value of i")
Set area = Application.InputBox("Select range", "Range", , , , , , 8)

For j = 1 To area.Rows.Count Step i
For k = 1 To area.Columns.Count Step i
area.Cells(j, k).Interior.Color = RGB(200, 160, 35)
Next k
Next j
End Sub[/VBA]