This sorts the data by using the 1st cell,4th cell,etc to the end of the row.Please Login or Register to view this content.
now I wish it to sort by the 3rd cell,6th cell etc
see excel sheet
Thanks
Steve.
This sorts the data by using the 1st cell,4th cell,etc to the end of the row.Please Login or Register to view this content.
now I wish it to sort by the 3rd cell,6th cell etc
see excel sheet
Thanks
Steve.
Last edited by pennbowl; 12-04-2014 at 04:39 PM.
Sort by date
Last edited by pennbowl; 12-04-2014 at 04:28 PM.
Hi, pennbowl,
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
And maybe you should change the title of the thread to a better fitting.
(This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
Change
wsT.Sort.SortFields.Add Key:=Range("A1:A5"),
To
wsT.Sort.SortFields.Add Key:=Range("C1:CA5"),
To
That does the trick
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks