Hi Folks
I have two sheets in the same Workbook that have identical Headings- but they are in differing Col order-
Is it possible to sort sheet 2 Cols to the same Col order as they appear in sheet 1 ?
Cheers
hammer
Hi Folks
I have two sheets in the same Workbook that have identical Headings- but they are in differing Col order-
Is it possible to sort sheet 2 Cols to the same Col order as they appear in sheet 1 ?
Cheers
hammer
If you have found solving my problem/s to be an interesting and educational exercise then how about Repping me up?
No idea why I need Rep, other than feeling left out....
Bumper![]()
Try
![]()
Sub test() Dim rng As Range With Sheets("sheet2").Cells(1).CurrentRegion Set rng = .Offset(, .Columns.Count) Sheets("sheet1").Cells(1).CurrentRegion.Rows(1).Copy rng.Cells(1) .AdvancedFilter 2, rng, rng .EntireColumn.Delete End With End Sub
Brilliant!
Thank you for your time and expertise jindon!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks