I have a range of data (Sheet1) I need to accomplish the following:
Copy cells from "Sheet1" [K2 & W2] & paste in "Sheet2" [I5 & I3 - respectively]
Copy from "Sheet2" [I6] & Paste (as values) to "Sheet1" [X2]
*NOTE: "Sheet2" [I6] is derived from a computation of the inputs into [I5 & I3] which takes a 1 or 2 seconds to compute the result due to external data pull given the inputs, and then calculated. So I may need a slight pause in the codeLoop above commands in subsequent rows from "Sheet1" [ie K3 & W3 etc]. Destination of paste [I5 & I3] remains constant.
Perform Loop until no more data left in "Sheet1" (variable) range.
I recorded the script below which runs correctly, but i am unsure of how to incorporate a Loop which will perform my task in the variable Range in "sheet1". I am a beginner VBA user. Any help is much appreciated. -Thank you
Sub Gspread ()
ActiveSheet.Next.Select
Range("I5").Select
ActiveCell.FormulaR1C1 = "Sheet1R[-3]C[2]"
Range("I3").Select
ActiveCell.FormulaR1C1 = "Sheet1R[-1]C[14]"
Range("I6").Select
Selection.Copy
ActiveSheet.Previous.Select
Range("X2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=clNone, SkipBlanks _ :=False, Transpose:=False