(Tanya)Cara copy beberapa row dan kolom

scott81

New Member
Joined
Feb 18, 2013
Messages
1
Hai semua,
Saya mempunyai data sheet seperti ini:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15

Pertanyaan:
Bisakah saya mengkopi 1,8,15 dan di-paste ke kolom baru?

Trims semua..
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hai,

Code:
Sub CopyMod7()
Dim c As Range
    For Each c In Range("A1:A15")
        If c.Row Mod 7 = 1 Then
        Range("A" & c.Row).Copy Destination:=Range("K" & c.Row)
        End If
    Next c
End Sub

Berharap ini akan membantu ...
 
Upvote 0
Hai,

Code:
=IF(MOD(ROW()-1,7)>0,"",OFFSET(A1,MOD(ROW()-1,7),0))

Berharap ini akan membantu ...
 
Upvote 0

Forum statistics

Threads
1,226,730
Messages
6,192,711
Members
453,748
Latest member
akhtarf3

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