I have code that references a sheet "Cost Detailing 1" multiple times, in a workbook which has 25 "Cost Detailing #" sheets. Right now I have 25 separate macros with the only difference being the sheet name referenced. The process right now is to go onto the desired sheet and click a button to update. Is there a way I could set the active sheet that needs populating at the start of the code as a constant so that I only need one macro which will work for any of the sheets?
Thank you