I'm looking for a way to iterate through the cells in the worksheet to paste in values.
The code posted below will not recognize the cell locations. Is there a way to loop the cell location to progressively paste the information into the desired spaces? I want the code to paste the value into A1:C1 first and then move over 4 spaces and post to E1:G1 and so on.
Unsure how to iterate the letters to move the cell over.
Sub test()
Dim x As Integer
Dim y As Integer
Dim InputSheet As Worksheet
Dim myBook As Workbook
Set myBook = Excel.ActiveWorkbook
Set InputSheet = myBook.Sheets("InputSheet")
For y = 0 To 5
x = 4
InputSheet.Range("A1 + 4*y : C1 + 4*y").Value = x
Next y
End Sub