# Creating a Macro in SolidWorks (2023 SP5) for Managing Global Variables and Equations

**URL:** <https://forum.cadmunity.com/t/creating-a-macro-in-solidworks-2023-sp5-for-managing-global-variables-and-equations/3023>\
**Category:** Macro Library\
**Created:** [April 26, 2024, 9:50am UTC](https://forum.cadmunity.com/t/creating-a-macro-in-solidworks-2023-sp5-for-managing-global-variables-and-equations/3023 "2024-04-26T09:50:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HugonTribunes](https://forum.cadmunity.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@HugonTribunes](https://forum.cadmunity.com/u/HugonTribunes)\
**Post date:** [April 26, 2024, 9:50am UTC](https://forum.cadmunity.com/t/creating-a-macro-in-solidworks-2023-sp5-for-managing-global-variables-and-equations/3023/1 "2024-04-26T09:50:38Z")

</div>

Hello everyone,  
I’m looking to create a macro in SW (2023 SP5) for a simple dialog box that displays my global variables used in my equations. I also want to be able to change these variables from this dialog box, rather than from the equation manager since there are too many equations and it’s not very clear! I just want to be able to retrieve the variables.  
Can you help me ? 🙂  
Thank you 🙂

---

<div class="post-metadata">

**Author:** ![josh](https://forum.cadmunity.com/user_avatar/forum.cadmunity.com/josh/32/30_2.png) [@josh](https://forum.cadmunity.com/u/josh)\
**Post date:** [May 8, 2024, 3:13am UTC](https://forum.cadmunity.com/t/creating-a-macro-in-solidworks-2023-sp5-for-managing-global-variables-and-equations/3023/2 "2024-05-08T03:13:52Z")

</div>

Try these various grouping options in the Equations dialog. You can group all the global variables at the top for easy access. I’m not sure you’d be able to create a cleaner/easier/better interface using a macro.  
 ![image.png](https://forum.cadmunity.com/uploads/default/original/2X/c/c62154158a89df99ecf316744a3180a0b4a57861.png)
