I'm trying to fill 1299 cells in a row with the value 0530 using the following code:
Sub FillValues()
Dim X As Integer
For X = 2 To 1300
Worksheets("Table1").Range("B" & X).Value = "'0530"
Next X
End Sub
For some reason it doesn't work and I don't know why. The error is "Index beyond the valid range."