Hi there,
Take a look at the attached workbook and see if I've understood your requirements correctly. It uses the following code:
The highlighted values may be altered to suit your requirements.
In the above code I've used Call statements - this is a personal preference because the Application.Run method has shortcomings in certain circumstances, but if you want, you can replace the following:
with:
The Module-Level Constants "msMACRO_NAME_1" and "msMACRO_NAME_2" can then be defined instead as Procedure-Level constants in the "Worksheet_Calculate" procedure.
The above alternative approach assumes that the "WC" and AWC" routines are contained in the VBA CodeModule of the worksheet in question.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks