Thread: [Solved] Macro to sort columns
View Single Post
 
Old 08-17-2016, 07:43 AM
c991257 c991257 is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Mar 2014
Location: Zambia
Posts: 61
c991257 is on a distinguished road
Default

The VBA boys should be able to put a loop in there to count the number of columns that needs to be sorted, but I'm not that clever.

i = 0
For i <= Count Number of columns with data
Sort
i++

Something like that.

I clicked the "Use Relative References" button (next to "Record Macro") to make it jump left without using hard references.
Reply With Quote