Hello,
I'm planning on sharing an Excel Workbook with someone - and perhaps more later on - which includes several sorting and filtering macros that rely on colors.
The only issue I can foresee at the moment is they may be using a different Office Theme. Each theme uses a different color scheme which will prevent the sorting and filtering based on the RGB values in the excel VBA code to work properly.
How do people currently ensure their VBA color-based codes work across the various Office Themes… and even a User's Custom Theme?
I was thinking that one way might be to first check if the current Theme is the default Office, and If yes, proceed with sorting/filtering. If not, then store the active Theme into a variable to later use to restore the theme after the sorting/filtering has taken place.
I should note that using the limited Constant Colors (vbBlue, etc.) are just not a viable alternative. They're too dark or too bright for my use.
Have any of you created VBA code that uses RGB color sorting/filtering to work across all Office Themes?
Here's an example of the Office theme I'm currently using, and one called Facet. As you can see, once I switch to Facet, all of the color values change.
Thanks,
I'm planning on sharing an Excel Workbook with someone - and perhaps more later on - which includes several sorting and filtering macros that rely on colors.
The only issue I can foresee at the moment is they may be using a different Office Theme. Each theme uses a different color scheme which will prevent the sorting and filtering based on the RGB values in the excel VBA code to work properly.
How do people currently ensure their VBA color-based codes work across the various Office Themes… and even a User's Custom Theme?
I was thinking that one way might be to first check if the current Theme is the default Office, and If yes, proceed with sorting/filtering. If not, then store the active Theme into a variable to later use to restore the theme after the sorting/filtering has taken place.
I should note that using the limited Constant Colors (vbBlue, etc.) are just not a viable alternative. They're too dark or too bright for my use.
Have any of you created VBA code that uses RGB color sorting/filtering to work across all Office Themes?
Here's an example of the Office theme I'm currently using, and one called Facet. As you can see, once I switch to Facet, all of the color values change.
Thanks,