I could use the person list sorting option under excel options, but I can not assume that all users of the file will have done so on their computer. Is there a way to do a pivot table sort with a personal sorting criteria for a variable called roomtemp so that is sorted by cold, warm, and hot.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
hard coding the a personal list option
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » hard coding the a personal list option
- This topic has 3 replies, 3 voices, and was last updated 13 years, 2 months ago.
Viewing 2 reply threadsAuthorReplies-
zeddy
AskWoody_MVPMarch 8, 2012 at 12:33 pm #1323800Hi
You could add a custom sort order using VBA.
If the customised sort already exists on their computer, adding it again via VBA doesn’t do anything, so no harm done.
To use any custom sort order in VBA, you need to know where about in the list of all defined custom sorts.
Try modifying the following code to suit (for example, using a named range for your pivot and sort cell etc.):Code:Sub sortByCustomList() Application.addCustomList Array("cold", "warm", "hot", "very hot") i = Application.GetCustomListNum(Array("cold", "warm", "hot", "very hot")) [a10].CurrentRegion.Sort Key1:=[a10], _ Order1:=xlAscending, _ Header:=xlGuess, _ OrderCustom:=i, _ MatchCase:=False, _ Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal End Sub
zeddy
-
zeddy
AskWoody_MVPMarch 9, 2012 at 6:32 am #1324038Hi
Another way to sort a column containing entries like cold, warm, hot without using VBA is to simply select the data column, use Ctr-H to bring up the find-and-replace option, then replace warm with dwarm (replace all), then just use the normal alphabetic sort on your data, then after sorting, re-select and replace the dwarm entries back to warm.
Voila! No VBA, no data gets hurt and everyone is happy.What I like about Excel is there are always lots of ways to achieve a result.
And I can think of several more ways to do what you ask.
Perhaps others may chip in their ideas too.zeddy
-
WSrory
AskWoody Lounger
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
3 hours, 10 minutes ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
40 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
3 hours, 42 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
20 hours, 5 minutes ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
10 hours, 30 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
22 hours, 45 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
15 hours, 1 minute ago -
Some advice for managing my wireless internet gateway
by
LHiggins
10 hours, 42 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
16 hours, 58 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
1 day, 8 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
1 day, 4 hours ago -
Does windows update component store “self heal”?
by
Mike Cross
18 hours, 35 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
1 day, 22 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
6 hours, 9 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
9 hours, 50 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
2 days ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
2 days ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 day, 13 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
2 days, 9 hours ago -
0Patch, where to begin
by
cassel23
2 days, 3 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
2 days, 22 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
2 days, 10 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
3 days, 7 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
2 days, 22 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
24 minutes ago -
Installer program can’t read my registry
by
Peobody
19 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 days, 20 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
3 days, 3 hours ago -
False error message from eMClient
by
WSSebastian42
3 days, 18 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
4 days, 3 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.