Sub Test1()
Dim LR As Long, LC As Integer
Sheets("FLR").Select
LR = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LC = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
Range(Cells(2, 1), Cells(LR, LC)).Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Sheets("Log").Select
Cells(Rows.Count, "A").End(xlUp).Offset(1).Select
ActiveSheet.Paste
Sheets("PCL").Select
LR = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LC = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
Range(Cells(2, 1), Cells(LR, LC)).Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Sheets("Log").Select
Cells(Rows.Count, "A").End(xlUp).Offset(1).Select
ActiveSheet.Paste
Sheets("KWT").Select
LR = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LC = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
Range(Cells(2, 1), Cells(LR, LC)).Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Sheets("Log").Select
Cells(Rows.Count, "A").End(xlUp).Offset(1).Select
ActiveSheet.Paste
Sheets("KRP").Select
LR = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LC = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
Range(Cells(3, 1), Cells(LR, LC)).Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Sheets("Log").Select
Cells(Rows.Count, "A").End(xlUp).Offset(1).Select
ActiveSheet.Paste
Sheets("SWS").Select
LR = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LC = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
Range(Cells(3, 1), Cells(LR, LC)).Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Sheets("Log").Select
Cells(Rows.Count, "A").End(xlUp).Offset(1).Select
ActiveSheet.Paste
Sheets("KTO").Select
LR = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LC = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
Range(Cells(3, 1), Cells(LR, LC)).Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Sheets("Log").Select
Cells(Rows.Count, "A").End(xlUp).Offset(1).Select
ActiveSheet.Paste
End Sub
Bookmarks