While it is easy to have ChatGPT write VBA for you, the process of returning that code to an actual Excel workbook is a different matter.You open the VBE, find the target module, delete the old code, ...