To anyone who can help.
In excel I have 13 columns of numbers from which I need to select a row at a time, copy that row to another location which gives a result. That result then needs to be copied (value only) to a location next to the original selection.
I then need to select the next row of numbers and do the same proceedure over until the end of the data in the columns.
Below is what I'm using to get by.
Range("B14:O14".Select
Selection.Copy
Range("B10".Select
ActiveSheet.Paste
Range("C12".Select
Application.CutCopyMode = False
Selection.Copy
Range("R14".Select
Selection.PasteSpecial Paste:=xlValues, Operation:xlNone, SkipBlanks:=_
False, Transpose:=False
Range("B15:O15".Select
Selection.Copy
Range("B10".Select
ActiveSheet.Paste
Range("C12".Select
Application.CutCopyMode = False
Selection.Copy
Range("R15".Select
Selection.PasteSpecial Paste:=xlValues, Operation:xlNone, SkipBlanks:=_
False, Transpose:=False
and so on until the end.
In the above the "B10" and "C12" are constant and the other selections increment by one row of 13 columns each time.
If anyone can help with some sort of loop and increment code I would greatly appreciate it.
thanks
RoscoK
In excel I have 13 columns of numbers from which I need to select a row at a time, copy that row to another location which gives a result. That result then needs to be copied (value only) to a location next to the original selection.
I then need to select the next row of numbers and do the same proceedure over until the end of the data in the columns.
Below is what I'm using to get by.
Range("B14:O14".Select
Selection.Copy
Range("B10".Select
ActiveSheet.Paste
Range("C12".Select
Application.CutCopyMode = False
Selection.Copy
Range("R14".Select
Selection.PasteSpecial Paste:=xlValues, Operation:xlNone, SkipBlanks:=_
False, Transpose:=False
Range("B15:O15".Select
Selection.Copy
Range("B10".Select
ActiveSheet.Paste
Range("C12".Select
Application.CutCopyMode = False
Selection.Copy
Range("R15".Select
Selection.PasteSpecial Paste:=xlValues, Operation:xlNone, SkipBlanks:=_
False, Transpose:=False
and so on until the end.
In the above the "B10" and "C12" are constant and the other selections increment by one row of 13 columns each time.
If anyone can help with some sort of loop and increment code I would greatly appreciate it.
thanks
RoscoK