so have a excel file which contains Macro code and which is present as button on sheet 1 and if press that button(Validate) we can see the result in sheet 2.
To locate the macro name linked to a button in an Excel spreadsheet, follow these steps:
Open the Workbook–>Access the Excel file containing the button.
Enable the Developer Tab–>If it’s not visible, enable it via File > Options > Customize Ribbon, then check “Developer”.
View Button Properties–> Activate “Design Mode” under the Developer tab, right-click the “Validate” button on Sheet 1, and select Assign Macro....
Check the Macro Name–>The assigned macro name will be displayed in the “Assign Macro” dialogue.
Explore the Macro Code–> To view the macro’s functionality, open the VBA editor via the Developer tab or by pressing Alt + F11, navigate to Modules, and locate the macro name.
By following these instructions, you can identify and examine the macro linked to the “Validate” button.