Hi, I have a question on how to add non adjacent cells. What I am trying to do is transfer a cell value to a location in the same sheet and then adding (3) cells and place the result in another cell same sheet. This is what I wrote but gives me a syntax error.
workbooks("sales").Sheets(i).Range("L40").Value = workbooks("sales").Sheets(i).Range("K31").Value
workbooks("sales").Sheets(i).Range("L42").Value = workbooks("sales").Sheets(i).Range("U31+AE31+AO31").Value
I also tried to create a variable to hold the sum, but then I get an object error. This is what i tried"
x= (U31+AE31+AO31)
workbooks("score").Sheets(i).Range("L40").Value = workbooks("score").Sheets(i).Range("K31").Value
workbooks("score").Sheets(i).Range("L42").Value = workbooks("score").Sheets(i).Range(x).Value
Thank you for your time,
jaefo
workbooks("sales").Sheets(i).Range("L40").Value = workbooks("sales").Sheets(i).Range("K31").Value
workbooks("sales").Sheets(i).Range("L42").Value = workbooks("sales").Sheets(i).Range("U31+AE31+AO31").Value
I also tried to create a variable to hold the sum, but then I get an object error. This is what i tried"
x= (U31+AE31+AO31)
workbooks("score").Sheets(i).Range("L40").Value = workbooks("score").Sheets(i).Range("K31").Value
workbooks("score").Sheets(i).Range("L42").Value = workbooks("score").Sheets(i).Range(x).Value
Thank you for your time,
jaefo