• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

kopyala yapıştır

  • Konbuyu başlatan Konbuyu başlatan sel45
  • Başlangıç tarihi Başlangıç tarihi
Katılım
14 Ağustos 2015
Mesajlar
21
Excel Vers. ve Dili
office
arkadaşlar ekte dosya gönderdim. a.b.c.d sütununa veri girip kopyala butonuna bastığımda f.g.h.ı sütularında dolu hücrenin hemen altındaki boş hücrelere kopyala yapıştır yapsın .cevaplarınız için teşekkür ederim.
 

Ekli dosyalar

A - D sütununda son kayıt edilen veriyi, F sütunundaki ilk boş hücreye kopyalar.
Kod:
sonA = Range("A" & Rows.Count).End(xlUp).Row
sonF = Range("F" & Rows.Count).End(xlUp).Row + 1
Range(Cells(sonA, "A"), Cells(sonA, "D")).Copy Cells(sonF, "F")

-------------------------------------------------------------------------------
Alternatif olarak;
Kopyalanan alanı Değer olarak yapıştırmak isterseniz
Kod:
Application.ScreenUpdating = False
sonA = Range("A" & Rows.Count).End(xlUp).Row
sonF = Range("F" & Rows.Count).End(xlUp).Row + 1
Range(Cells(sonA, "A"), Cells(sonA, "D")).Copy
Cells(sonF, "F").PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
Cells(sonA, "A").Select
Application.ScreenUpdating = True
 
Son düzenleme:
A - D sütununda son kayıt edilen veriyi, F sütunundaki ilk boş hücreye kopyalar.
Kod:
sonA = Range("A" & Rows.Count).End(xlUp).Row
sonF = Range("F" & Rows.Count).End(xlUp).Row + 1
Range(Cells(sonA, "A"), Cells(sonA, "D")).Copy Cells(sonF, "F")

-------------------------------------------------------------------------------
hocam A-D sütunundaki dolu hücrelerin tamamını F-I sütunundaki ilk boş hücrelere yapıştırsın
yukarıdaki kod sadece en son satırı kopyalıyor
 
Döngü ile kopyalama işlemi.
F-I sütunundaki kayıtlı veriler silinmeyecek ise Range(Cells(2, "F"), Cells(Rows.Count, "I")).ClearContents bu satırı silebilirsiniz.
Kod:
Application.ScreenUpdating = False
Range(Cells(2, "F"), Cells(Rows.Count, "I")).ClearContents
sonF = Range("F" & Rows.Count).End(xlUp).Row + 1
For x = 1 To Range("A" & Rows.Count).End(xlUp).Row
     Range(Cells(x, "A"), Cells(x, "D")).Copy
     Cells(sonF, "F").PasteSpecial Paste:=xlPasteValues
     Application.CutCopyMode = False
     If Cells(x, "A").Value <> "" Then sonF = sonF + 1
Next x
Cells(Rows.Count, "A").End(xlUp).Select
Application.ScreenUpdating = True
 
çok teşekkürler hocam elinize sağlık


Application.ScreenUpdating = False
Range(Cells(2, "F"), Cells(Rows.Count, "I")).ClearContents
sonF = Range("F" & Rows.Count).End(xlUp).Row + 1
For x = 1 To Range("A" & Rows.Count).End(xlUp).Row
Range(Cells(x, "A"), Cells(x, "D")).Copy
Cells(sonF, "F").PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
If Cells(x, "A").Value <> "" Then sonF = sonF + 1
Next x
Cells(Rows.Count, "A").End(xlUp).Select
Application.ScreenUpdating = True
 
Son düzenleme:
Rica ederim, iyi çalışmalar.
 
Geri
Üst