I am trying to use vba to do some data mining. I have excel spreadsheet and writing a code to select data from a row. Each column has separate variables but the row represents all the variables for that particular set.
I want to write a for loop for selecting a cell and assigning the value of that cell to a particular variable.
For counter = 7 To 57
Ca = Worksheets("sheet1").Cells(g, counter)
What would be correct syntax to assign value of say cell g7 to variable Ca?
Thank you, AJ