Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 08-10-2018, 04:33 PM
NoSparks NoSparks is offline How to sort multiple columns with pages Windows 7 64bit How to sort multiple columns with pages Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

Quote:
When I add an entry, say Joe Friday/U001 at the end of the list, when I try to sort it
you can't sort it the way it is.

What the code does...
Takes all the data from the Utility ID sheet and puts it into columns A & B on the ScratchPad sheet.
Sorts alphabetically based on column A, because that's what your first picture appears to be.
Deletes everything from the Utility ID sheet.
Writes the ScratchPad data back to the Utility ID sheet in 50 row chunks.

try this...
Re-name Sheet1 to Utility ID
Remove the single space from cell A251
Add a new sheet and name it ScratchPad
Alt+F11 to bring up the VBA environment
From menu, Insert module
Copy the code to vba module 1
Close the VBA environment
Add Joe Friday/U001 at the bottom of columns D & E at row 246
Alt+F8 and run the macro.

Joe Friday is now at A135.
Attached Files
File Type: xlsm Utility ID_v2.xlsm (92.4 KB, 12 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to sort multiple columns with pages Macro to sort columns SerenityNetworks Excel Programming 4 09-02-2016 06:20 AM
.pdf to .xlsx - How to get sort-able columns? CCinPA Excel 0 07-05-2016 08:30 AM
How to sort multiple columns with pages Normal sort not bringing along other columns Dave Fraser Excel 2 06-06-2014 11:48 AM
quick replace, sort, change columns userman Excel 1 05-01-2012 06:24 AM
How to sort multiple columns with pages How to sort table having three columns? Bahir Barak Word 2 01-20-2011 01:52 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft