repeative inceasing paste value of the selective cells

123amitjain

New Member
Joined
Sep 10, 2013
Messages
5
Attribute VB_Name = "Module1"
Sub Macro1()
Attribute Macro1.VB_ProcData.VB_Invoke_Func = " \n14"
'
' Macro1 Macro
'


'
Sheets("Sheet2").Select
Range("I2").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[1]C[-7]"
Range("I2").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Range("J2").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=Sheet1!R[1]C[-7]"
Range("J2").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Range("K2").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=Sheet1!R[1]C[-7]"
Range("K2").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Range("L2").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=Sheet1!R[1]C[-7]"
Range("L2").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
'
' repeat above code like this below what should u use? while , for , and how? ... inceasing range to the last cells ..
'
Range("I3").Select
ActiveCell.FormulaR1C1 = "=Sheet1!RC[-7]"
Range("I3").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Range("J3").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=Sheet1!RC[-7]"
Range("J3").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Range("K3").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=Sheet1!RC[-7]"
Range("K3").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Range("L3").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=Sheet1!RC[-7]"
Range("L3").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
End Sub
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,214,786
Messages
6,121,548
Members
449,038
Latest member
Guest1337

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top