boy3hc2004
New Member
- Joined
- Feb 27, 2024
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
- MacOS
I've created a macro in Excel that formats and sorts cells according to colour; however, a portion of the VBA code is limited to using the sheet named "Data2". In order for this code to execute on any sheet that I run it on, I'm trying to make it more generic. The non-generic portion of the code is indicated in yellow below.