Skip to main content

AccessTr.neT


Veri Depolama

Veri Depolama

#5
Alttaki gibide olabilir.

Sub SayfaAktar()
    Dim syf As Worksheet
    Application.ScreenUpdating = False
    With ThisWorkbook.Sheets("Depo")
        .Range("A2:L" & Rows.Count).ClearContents
        For Each syf In ThisWorkbook.Sheets
            If LCase(syf.Name) <> "depo" Then
                If WorksheetFunction.CountA(syf.Range("A2Lol" & Rows.Count)) > 0 Then
                    syf.Range(syf.Range("A2"), syf.Range("A1").End(xlDown).End(xlToRight)).Copy
                    .Range("A" & Rows.Count).End(3)(2, 1).PasteSpecial xlValues
                End If
            End If
        Next
    End With
    MsgBox "islem tamam...", vbInformation, "Bilgi"
    Application.ScreenUpdating = True
    Application.CutCopyMode = False
End Sub

 syf.Range(syf.Range("A2"), syf.Range("A1").End(xlDown).End(xlToRight)).Copy
Eğer satırlar arasında boş olacaksa örneğin Tc sütunucaki satırda boş veri olursa alttaki gibi değiştirilir yukarıdaki kodun.

syf.Range("A2Lol" & syf.Range("A" & Rows.Count).End(3).Row).Copy
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Veri Depolama - Yazar: hegu - 24/10/2020, 18:12
RE: Veri Depolama - Yazar: hegu - 25/10/2020, 11:03
RE: Veri Depolama - Yazar: hegu - 25/10/2020, 13:11
RE: Veri Depolama - Yazar: feraz - 25/10/2020, 15:02
RE: Veri Depolama - Yazar: feraz - 25/10/2020, 15:22
RE: Veri Depolama - Yazar: feraz - 25/10/2020, 15:45
RE: Veri Depolama - Yazar: hegu - 25/10/2020, 16:41
RE: Veri Depolama - Yazar: feraz - 25/10/2020, 16:48
Task