View Single Post
 
Old 04-20-2022, 12:57 AM
lenziwag93 lenziwag93 is offline Windows 11 Office 2019
Novice
 
Join Date: Apr 2022
Posts: 2
lenziwag93 is on a distinguished road
Default

Thats what i got for bullet point 1:

Code:
Sub CopyRowE() Dim LastRowE As Long Dim LastRowH As Long Dim LastDataRow As Long Dim CopyData As Long  With Tabelle1  LastRowE = .Range("E9999").End(xlUp).Row LastRowH = .Range("H9999").End(xlUp).Row  .Range("E2:E" & LastRowE).Copy .Range("CA1").PasteSpecial .Range("H2:H" & LastRowH).Copy .Range("CB1").PasteSpecial  LastDataRow = .Range("CB999999").End(xlUp).Row .Range("CA1:CB" & LastDataRow).Copy  Sheets.Add  ActiveSheet.Range("A1").PasteSpecial  .Range("CA1:CB" & LastDataRow).ClearContents  Tabelle1.Select .Range("A1").Select  End With End Sub


Any idea for the other bullet points? How can i do the same for a different file?
Reply With Quote