Automatically translated.View original post

Code to arrange in user setting list order

2025/8/10 Edited to

... Read moreピボットテーブルの並び替えで「ユーザー設定リスト」を使いたいのに、思った順にならないことってありませんか?私は「曜日順」「1〜12月」「勘定科目(例:備消品費→…)」みたいに“会社のルール順”で並べたい場面が多くて、結局ユーザー設定リストに頼ることが多いです。 まず大事なのは、ピボット側の並び替えは「ユーザー設定リスト(カスタムリスト)」の影響を受ける、という点。なのでピボットで理想の順にしたいときは、先にExcel本体にカスタムリストを登録しておくのが近道です。 【ユーザー設定リストの場所】 ファイル → オプション → 詳細設定 →(下の方)全般 →「ユーザー設定リストの編集」 ここで「月」「曜日」以外に、自分の並び(例:売上高, 売上原価, 粗利…)を登録できます。私はここを知らなくて、ずっと手で並べ替えてました…。 【VBAで“ユーザー設定リスト順”に並べ替えるコツ】 記事内のように、ソートの CustomOrder(カスタムオーダー)を指定して並べ替えると、データ側は一発で狙い通りになります。ポイントは3つです。 1) SortFields を一度 Clear してから条件を入れる(前の条件が残るのを防ぐ) 2) Key(キー)を明確にする:例だと A1 を基点に列全体を対象にするイメージ 3) CustomOrder に「備消品費,旅費交通費,…」のような順番文字列を入れる 【ピボットで反映されないときのチェック】 ・並べ替え対象が「ラベル」なのか「値」なのか(値の並べ替えだと意図とズレやすい) ・同じ項目名の表記ゆれ(全角半角、スペース) ・キャッシュ更新が必要な場合:ピボットの更新(右クリック→更新) 最後に注意点。VBAで一時的に並べ替えを実行できても、Excelのユーザー設定リスト自体を“恒久的に登録したい”なら、やっぱりExcelのオプション画面から登録するのが確実です(環境移行や他PCで再現したいときもここが大事)。私も、まずはExcel側で登録→必要に応じてVBAで自動化、の流れに落ち着きました。

Related posts

How To Apply Makeup In The Correct Order 💄👛
Ever wonder about the right order for your makeup? Don't stress! Here's a clear, step-by-step guide to applying your makeup products, perfect for beginners. Get ready to master your makeup routine as a beginner! Part 1 #Makeup #LayeringMakeup #BeginnerFriendly #EasyMakeup
Layla Marie 💜

Layla Marie 💜

2503 likes

A bedroom scene with a bed and a nightstand featuring a glowing purple alarm clock and diffuser, illustrating how to stick to a morning routine.
A person in fuzzy pants writing in a notebook on a bed, with text overlay about preparing the night before by planning, winding down, and writing to-dos.
A person wearing glasses and a sweatshirt resting on a couch, with text overlay prompting to ask what's most important for long-term morning habits.
How to Create a Morning Routine 🌅
Creating a morning routine (that you actually stick to) can be tough, but it’s not impossible. Building a routine takes practice and intentionality. In order to build a morning routine that sticks, do these 4 things: - Use the night before to prepare. This means writing out your to-do list, sett
Rebekah Joy

Rebekah Joy

1669 likes

Design Setting Boundaries
If you grew up being told to be agreeable, helpful, and easygoing — boundaries probably feel selfish, scary, or just impossible 💔 They're not. Here's how to start, gently. I track my boundary practice in @Psyfy_app every week 🐾 #psyfy #journaling #journal #boundries
LaurelPrescott00

LaurelPrescott00

37 likes

A bullet journal-style packing list featuring hand-drawn luggage icons and categories like 'Clothes + Shoes', 'Toiletries', and 'Other'. The title 'Packing Lists' is overlaid in a decorative font.
A 'Stress-Free Vacation Packing List' template with checkboxes for Essentials, Clothing, Electronics, Personal Items, Toiletries, and Health, accompanied by small travel-themed illustrations.
A detailed 'Vacation Packing List' covering numerous categories including Clothing, Money, Toiletries, Electronics, Medical/Health, Baby Items, and a 'Before Leaving' section.
Packing List
Some packing list templates I found online that would help you pack for your next trip! #traveling #packingtips #travel #packinglist #foryou #travelrecommendations #packinghacks #travelcreator #lemon8travel #whatsinmybag
frances ◡̈

frances ◡̈

954 likes

A study desk with an iPad, highlighter, textbook, and notes, featuring the title "How to get a 4.00 GPA Based on your Major" and "All majors included!".
Strategies for Business & Management Majors (Business Management, Accounting, Finance, Economics), including Active Participation, Case Study Analysis, Practice Financial Modeling, and Utilize Study Groups, with mentions of MarketingSherpa and GroupMe.
Strategies for Communications & Education Majors (Communications, Education), including Create Multimedia Presentations, Peer Teaching, Reflective Journaling, and Attend Workshops, with mentions of Canva and Notion.
Major-Specific Strategies to Achieve a ✨4.0 GPA✨🎓🧠
🎓1. Business & Management Majors (Business Management, Accounting, Finance, Economics) ✅Active Participation: Example: In a Marketing class, when discussing a case study like Coca-Cola’s rebranding, share your analysis of the marketing mix (4Ps). This not only engages you in the materi
Chalie_Baker

Chalie_Baker

7045 likes

A moving checklist outlines tasks from two months to moving day, including organizing, scheduling utilities, packing, and final checks. It features a woman, moving boxes, and an empty room, with the handle @PRETTYGIIRLSZN.
An updated apartment checklist lists essential items like hangers, furniture, toilet tissue, kitchenware, cleaning supplies, and emergency kits, set against a background of a woman's face, with the handle @Taurusdreamz.
A first apartment checklist details items for bedroom, kitchen, bathroom, laundry, and living room, including furniture, appliances, and linens, with a woman in a swimsuit and decorative elements, from @TAURUSDREAMZ.
FIRST APARTMENT LIST
#lemon8partner #embracevulnerability #firstapartment
KhaelaWhaela

KhaelaWhaela

1894 likes

#explore prioritizing your time for what really matters . investing my time and energy . walking fully into the #softgirlera changing how you plan your day . walk with God 🌹🌷 #becomingher #explore
Monii 🌸🦋

Monii 🌸🦋

67 likes

A hand holds a half-eaten peach over an open book displaying text and the page number '3'. The overlay text reads "SUMMER GIRL 50 THINGS TO DO THIS SUMMER". A black garment with a white bow is visible at the bottom, along with a Lemon8 username.
A list titled "Outdoorsy & Dreamy Adventures" presents 10 summer activities. These include picnics, golden hour photo shoots, sunset meditation, national park hikes, lakeside paddle boarding, bonfire nights, glamping, outdoor movies, flower field visits, and decorating bikes.
A list titled "Foodie Girl Summer" outlines 10 culinary activities. Suggestions include hosting dinner parties, fruit-picking, salad nights, freezing fruit, decorating cupcakes, making lemonade, picnics, French breakfast, charcuterie boards, and rating ice cream shops.
Aesthetic & Fun Girl’s Summer Bucket List 2025 ☀️🌊🧺
Here are some of my favorite and dreamy things to do over the summer, either solo or with friends! 🌿Lakeside Paddle‑Board & Golden Coast Vibes Slip into a minimalist neutral swimsuit — think ivory or sage — and lightweight linen shorts. Throw on a wide-brim straw hat and your fave polariz
Chalie_Baker

Chalie_Baker

774 likes

A room filled with stacked moving boxes and plastic bins, with a window in the background. The image has a text overlay that reads "Moving out Check List."
A room with numerous open and closed moving boxes, some from Home Depot, scattered across the floor, indicating items being packed or unpacked. A staircase is visible on the left.
The interior of a moving truck packed with stacked moving boxes, many from Home Depot, and black bags. A red hand truck is positioned on the left side of the truck.
Moving out check List 📋✅🚚
Here’s a comprehensive moving out checklist to help you stay organized and avoid missing anything important: 🏠 1. 30–60 Days Before Moving • Notify landlord or property manager (if renting) • Schedule move-out date and book movers or truck rental • Create a moving b
imene.zn1

imene.zn1

78 likes

A stylized image of a woman sitting on a couch, with the title "Weekly Plan Of SELF CARE SWIPE" and a daisy graphic, introducing a self-care routine.
A woman sitting outdoors with a drink, next to text "Monday: Mindful Start" and a checklist for morning meditation, cleaning, journaling, and early bedtime.
A woman lying down, holding a bowl, with text "Tuesday: Move & Glow" and a checklist for dance/yoga, hydration, face mask, and a nourishing meal.
✨ goal setting is self-care! ✨
This week isn’t about perfection—it’s about presence. The little rituals, the quiet mornings, the soft resets… they all matter. You don’t need a reason to care for yourself deeply. You are the reason. 🌷 So here’s your reminder to romanticize the ordinary, slow down with intention, and pour back
_444mriah

_444mriah

47 likes

How To Apply Makeup In The Correct Order 💄👛
Ever wonder about the right order for your makeup? Don't stress! Here's a clear, step-by-step guide to applying your makeup products, perfect for beginners. Get ready to master your makeup routine as a beginner! Part 2 #Makeup #LayeringMakeup #BeginnerFriendly #EasyMakeup
Layla Marie 💜

Layla Marie 💜

22 likes

Setting up sterile field & Donning sterile gloves
• Sterile field set up • Adding sterile items • Pouring sterile liquids • Applying sterile gloves #nursingstudent #nursing #nursingnotes
Ittybittyspider

Ittybittyspider

277 likes

An updated first apartment checklist featuring essential items like hangers, furniture, kitchenware, and cleaning supplies, set against a background of a person's face. The list includes categories such as personal supplies, emergency kits, and bed sheets.
A comprehensive first apartment checklist categorized by room (bedroom, kitchen, bathroom, laundry, living room), detailing items like mattress, microwave, shower curtains, and couch. The image features a person in a plaid outfit with sparkling effects.
A moving checklist organized by timeframes: 2 months, 1 month, 3 weeks, 1 week, 1 day, and moving day. It outlines tasks like organizing, packing, scheduling utilities, and final checks, with images of moving boxes and an empty room.
FIRST APARTMENT LIST
#Lemon8Diary #lemon8partner #helpmechoose #moving
KhaelaWhaela

KhaelaWhaela

211 likes

A woman in a car with sunglasses on her head, smiling at the camera. Text overlay reads: "How to Use CHAT GPT For Your New Years Goals," with Lemon8 and @therecoveryrebel branding.
A woman in a car looking out the window. Text overlay presents a ChatGPT prompt: "Help me write a daily/weekly schedule if my New Year’s resolutions are ____." Additional text explains the prompt's purpose.
A woman in a fur coat stands in a snowy, festive outdoor setting with lights. Text overlay shows a ChatGPT prompt: "Write me a list of New Years Goals for someone who struggles with _____." Further text explains its use.
How to Use Chat GPT For New Years Resolutions
It’s time to use technology to your advantage. Here’s 3 prompts for setting your New Years goals: ❓“Help me write a daily/weekly schedule if my New Year’s resolutions are ____, ____, and _____.” Action is needed in order for anything to to be accomplished. This prompt will give clarity on exact
Abby

Abby

343 likes

study strategies and tips ✨🤍🦋
#BackToSchool #lemon8challenge #embracevulnerability #Lemon8Diary #school study strategies and tips - my most recent saves 🫶🏻✨💕 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
xoxo

xoxo

6 likes

A cozy living room features a light-colored sofa with an orange glow from hidden light strips, creating a warm ambiance. The sofa is adorned with pillows and throws, and a shelf above displays framed art.
A wide view of a living room shows a sofa with light strips casting a soft orange glow, enhancing the room's ambiance. A coffee table with flowers and books sits in front, with a gallery wall on the right.
A close-up of a sofa corner highlights light strips creating an upward orange glow for a soft effect. The coffee table displays flowers and a candle, emphasizing the cozy lighting setup.
Setting The Mood With Light Strips ✨😮‍💨
This is your sign to use light-strips to create the coziest glow & ambience to any space, ESPECIALLY if you have your sofa against a wall. I know light strips aren't everyone's cup of tea, but for me they add so much with minimal effort. These ones are by the brand Govee and I got them
Alexandra

Alexandra

2369 likes

A hooded figure reads from an open book, casting a spell amidst glowing potions, lit candles, and mystical symbols under a full moon. The scene is vibrant with magical energy, depicting the focused act of spellcasting.
The Order of Doing a Spell
1. Cleansing Why: Clears lingering energy in your space, tools, and aura so your intention isn’t mixed with old vibrations. How: Sweep with smoke, sprinkle salt at thresholds, strike a bell, or spray a simple salt + water mist. Also wipe down physical tools if you use them. Variant: Some folks c
DawnLyn

DawnLyn

29 likes

✨First Order of the Year is on Its Way!✨
The first order of 2025 has officially shipped, and it’s one of my all-time bestsellers—the Afro Puff Keychain! Honestly, I loved this one so much that I almost kept it for myself. There’s just something special about starting the year with a product that holds so much meaning and joy. This year
Alicia

Alicia

1713 likes

Pack an order with me ✨🌸
Thank you, Courtney, for your order of the Black Rose planner! Your support means the world to my small business. I can’t wait for you to unbox this beauty and start planning with purpose! ✨🖤 . . . . . #SmallBusinessLove #PackingOrders #ASMR #PlannerAddict #BlackRosePlanner #
The Orderly Mom

The Orderly Mom

55 likes

Beginner makeup order )follow comment like)
Beginner Makeup order #quickandeasybeauty #lowmaintenancebeauty #mascara #blushes #contourtips Los Angeles
Theminkpantry

Theminkpantry

495 likes

The image displays stacks of US dollar bills with the title '11 FINANCIAL HABITS YOU NEED TO MASTER' and a 'Swipe' prompt, indicating a list of financial tips.
11 Financial Habits You Need To Master⬇️💵💰
💸 Track your money First things first: track your money. This means knowing exactly how much money you're bringing in, and how much money you're spending. And I'm talking about getting real nitty gritty here. Get into the habit of tracking literally every dollar you make and spend. How
TëŠhøñdå✰

TëŠhøñdå✰

891 likes

A laptop screen displays 'GOAL SETTING & VISION BOARDS STEP BY STEP GUIDE WITH FOR ADHD USING XTILES' over an xTiles interface. The overall title is 'HOW TO MAKE 2025 YOUR YEAR' and the bottom text reads 'PART 1/5: GOAL SETTING & CREATING SYSTEMS FOR SUCCESS'.
A laptop screen shows xTiles templates like 'DAILY PLANNER SIMPLE' and 'SECOND BRAIN'. Text overlays read 'STEP #1 FIGURE OUT & CREATE SYSTEMS YOU NEED TO HELP YOU REACH YOUR GOALS' and highlight xTiles' simplicity compared to Notion, mentioning weekly planner, mood board, and meal prepping templates.
A laptop screen displays a Pinterest page with various images for a vision board. Text overlays read 'STEP #2 FIGURE OUT YOUR 2025 GOALS & BEGIN PINTEREST HUNTING! USE A TEMPLATE & CREATE YOUR VISION BOARD', emphasizing xTiles' ease of dragging and uploading images.
2025 ADHD Goal Setting & Vision Board Guide 🤍📚✨
Hello lovelies, Happy new year! A new exciting year filled with so much potential and so much possibility to hangs your entire life in the next year - I'd be terrible not to share with you my personal quick guide to using my favorite app for my virtual vision board and systems using xTiles!
Denisse 🧸💗🩰✨

Denisse 🧸💗🩰✨

56 likes

Essential— Setting Boundaries
The boundary we all need to set: saying "no" to people. Whether that's not attending events, not engaging in certain conversations, or not granting their wants— we don't have to. & when we give so much access away to others then they have this underlying feeling of entitle
Danielle Livingstone

Danielle Livingstone

1 like

A hand with pink manicured nails holds a thick stack of US dollar bills. Overlay text reads "11 Financial Habits You Need To Master" with a prompt to "read below" and the user handle "@lifewithiri".
11 Financial Habits To Master NOW ⬇️💰
1. Track your money First things first: track your money. This means knowing exactly how much money you’re bringing in, and how much money you’re spending. And I’m talking about getting real nitty gritty here. Get into the habit of tracking literally every dollar you make and spend. How much money
irianna

irianna

13.9K likes

A first apartment checklist titled 'the basics' categorizes essential items for the entrance, kitchen, bedroom, living room, bathroom, and important general supplies. A person's face is partially visible in the background.
A comprehensive first apartment checklist, featuring categories like bedroom, kitchen, bathroom, laundry, and living room essentials, with some items marked as optional. A person in a plaid top is in the background with sparkling effects.
A moving checklist outlines tasks by timeline: 2 months, 1 month, 3 weeks, 1 week, 1 day, and moving day. Background images show moving boxes and empty rooms, illustrating the moving process.
FIRST APARTMENT LIST
#fypシ゚viral #first #Lemon8Diary #motivation
KhaelaWhaela

KhaelaWhaela

844 likes

A hand holds a smartphone displaying a desk setup with plants and neon lights. The background shows a similar room. Text overlays read "Desk Makeover With: ChatGPT" and "Lemon8 @rainezforest," indicating AI-generated desk design ideas.
A tablet displays an AI-generated pink, cute, and girly gamer desk setup with a monitor, keyboard, and pink chair. The prompt used is visible, asking for a "girly and cute and pink" re-creation of a setup.
A tablet shows an AI-generated hardcore desk setup with RGB lighting and black and white decor. The prompt used is visible, requesting a "hardcore desk with RGB lighting and more black and white decor."
Let ChatGPT Arrange your Desk ✨
Are you thinking of changing your desk or your room around but you don’t know where to start? I’ve been playing around with ChatGPT and it’s image generation to redecorate my desk set up and here are some of the results! I have the prompts that I used in the pictures so you can use them on your
Raine ☀️

Raine ☀️

111 likes

The NHA CMAA Test Plan outlines the exam with 110 scored items over 2 hours 15 minutes, based on a 2021 job analysis. It summarizes 7 domains: Foundational Knowledge, Communication, Medical Law, Scheduling, Patient Encounter, Billing, and Administrative Procedures.
CMAA Detailed Examination Outline for Domain 1: Foundational Knowledge (10 items). It lists tasks and knowledge points covering healthcare organizations, health records, EHR/EMR components, medical terminology, and basic anatomy and physiology.
CMAA Detailed Examination Outline for Domain 2: Communication and Professionalism (21 items). It details tasks like communicating with patients and managing difficult interactions, alongside knowledge points on communication styles, nonverbal cues, interviewing, and professional conduct.
CMAA Test Plan
Certified Medical Administrative Assistant (CMAA) CMAAs can perform jobs with titles including medical administrative assistant, medical office assistant, and medical office secretary. These professionals often work at the front desk of health care facilities and are vital to running the office sm
Baton Rouge Author

Baton Rouge Author

219 likes

How to Arrange Furniture in a Small Room
Arranging furniture in a small room doesn’t mean sacrificing comfort. These 10 creative layouts show you how to angle pieces diagonally, face the window for natural light, combine bed and desk zones, float furniture for airiness, and anchor with rugs. Tall storage walls, foldable tables, nesting pi
Daisy Owen

Daisy Owen

118 likes

GRWM but my AI chooses the order of my makeup…
#grwm #grwmmakeup #makeup #grwmchallenge #ai
KAYLA🤎🧸✨🐆

KAYLA🤎🧸✨🐆

448 likes

Makeup Order
Does anyone have the same makeup order as me? #makeup #makeupfilter
Hannah Watson

Hannah Watson

362 likes

Pack an order with meeee 🥰✨
Let’s pack order #1195 - Trying to get better at my asmr packing videos. This year I’m focused on setting up my space to get better lighting and a more “aesthetic” look. But for now making use of the space I was blessed with 🙏🫶
1012CandleCo

1012CandleCo

3 likes

Check out 100 Bucket List Ideas!
Lemon8s spanking new Bucket List feature is here, and oh boy, it's a game-changer! I just dove in, and it's like a treasure trove of awe-inspiring ideas waiting to be explored. Join in the fun and let's start ticking off those dreamy escapades together! ✨🍋🎉 I’ve completed 55 things o
Mia

Mia

5 likes

Teaching myself how to arrange flowers 💐
This is something I have never had a knack for but want to learn how to be better at it! All of the flowers were from Trader Joe’s and cost me $20! Trader Joe's
Madison Keever

Madison Keever

0 likes

Setting Boundaries
Setting boundaries is crucial for protecting your well-being and self-worth. Recognizing your personal boundaries is essential for setting healthy limits with others. In order to set healthy boundaries identify your needs and priorities, clearly communicate them to others in a respectful manner and
megomylego

megomylego

4 likes

See more