Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-10-2022, 04:47 PM
BobBridges's Avatar
BobBridges BobBridges is offline Using a code to sort out Data Windows 7 64bit Using a code to sort out Data Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Felix, I don't understand the question. You can sort the data in a worksheet based on the data in one column (D or whatever), but what do you mean by a "code"?

Wait, maybe the key word here is "automatically". Are you hoping for a way to tell a worksheet to resort itself, even after you've made changes to it? I suppose that's possible. But I've never heard of anyone trying to do it; the usual way is to make your changes to the worksheet, then re-sort the data manually.

I've never tried it, but I guess you could write a program that is automatically executed every time you make a change to that worksheet. The program would first check to see whether any of the changes you'd made are in column D (or whatever column you're sorting on), and if that column is involved then do the sort. Seems to me that would be disruptive, though; you'd insert a new row, say, with a new value in col D, and instantly the row would be snatched away from your view and reappear somewhere else in the worksheet according to its sort value. I don't think I'd like it.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyphens in Sort Code not appearing in mail merged Word document Joanne Mail Merge 4 11-12-2021 02:31 AM
VBA sort table code mikec Excel Programming 8 10-01-2013 04:37 PM
Outlook Combobox Sort Code lms Outlook 1 09-18-2013 09:56 AM
sort data in excel cabot Excel 1 08-17-2012 09:41 AM
Using a code to sort out Data Sort Data rkeles Excel 6 02-04-2012 01:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:58 AM.


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