Hi, askpcguy,
the first code could be like
Sub CopyLastFiveColumns()
Dim LastColumn As Long
With Sheets("Sheet1")
LastColumn = .Cells.Find("*", [a1], , , xlByColumns, xlPrevious).Column
.Columns(LastColumn - 4).Resize(, 5).Copy .Columns(LastColumn + 1)
Application.CutCopyMode = False
End With
End Sub
I think we all know how an empty workbook will look like, you would need to specify if you only want one sheet in there for example.
Sub CopyLastFiveColumnsOtherSheet()
Dim LastColumn As Long
With Sheets("Sheet1")
LastColumn = .Cells.Find("*", [a1], , , xlByColumns, xlPrevious).Column
Workbooks.Add
.Columns(LastColumn - 4).Resize(, 5).Copy
ActiveSheet.Paste
Application.CutCopyMode = False
End With
End Sub
Ciao,
Holger
Bookmarks