The basic VBA code to bring an Excel workbook to the front is:
Workbooks("WorkbookName.xlsx").Activate
Replace “WorkbookName.xlsx” with the actual name of the Excel file you want to bring to the front, including the file extension.