Hi there,
I am a quite unexperienced VB user and I am trying to do some simple operations in excel. I am presenting my existing problematic code below.
I am trying to copy/paste a range of values (two columns, S7:T101) from a sheet(INTERACTI ON-RF_Calc) in a different sheet (RF-Calculation). In the destiantion sheet a calculation will take place for which the result will be created in cell (H13). Now I need to copy/pasted this results back the original sheet (INTERACTION-RF_Calc) in a column next to the original input range values. Obviously I need to do this for the whole lenght of the column.
The code below is only able to do the requested operation for the first set of values.
I would appreciate a little bit of help.
Thanks for your time.
I am a quite unexperienced VB user and I am trying to do some simple operations in excel. I am presenting my existing problematic code below.
I am trying to copy/paste a range of values (two columns, S7:T101) from a sheet(INTERACTI ON-RF_Calc) in a different sheet (RF-Calculation). In the destiantion sheet a calculation will take place for which the result will be created in cell (H13). Now I need to copy/pasted this results back the original sheet (INTERACTION-RF_Calc) in a column next to the original input range values. Obviously I need to do this for the whole lenght of the column.
The code below is only able to do the requested operation for the first set of values.
I would appreciate a little bit of help.
Thanks for your time.
Code:
Sub Rx3Ry()
'
' Rx3Ry Macro
' Macro recorded 28.02.2007 by sotsigo
'
Dim d As Integer
For d = 1 To 10
Range("S7:T101").Select
Selection.Copy
Sheets("INTERACTION-RF_Calc").Select
Range("J2:K2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("H13").Select
'Application.CutCopyMode = False
Selection.Copy
Sheets("RF-Calculation").Select
Range("U7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Next d
End Sub
Comment