Say if I have addresses of cell in one column in excel. for example Column E in an excel has addresses of various cells in the excel (i.e.$H$5, $J$7 etc.). I am looking for a code which can select the cell mentioned in this column.
Attached is the snapshot which is the intended output of the code. However, it fills entire rows and columns with Value X in the excel.
Sub GCELL()
    Dim lastrow As Long
    Dim lastrow1 As Long
    lastrow = Sheet1.Cells(Rows.Count, 5).End(xlUp).Row  
    lastrow1 = Sheet1.Cells(Rows.Count, 3).End(xlUp).Row
    For i = 5 To lastrow
        For j = 5 To lastrow1        
            Application.Goto Reference:=Cells(i, j)
            ActiveCell.FormulaR1C1 = "X"
        Next j   
    Next i
End Sub
 
    