Forum Discussion
gcsingh9015
Dec 06, 2022Copper Contributor
Macro Auto Display alert opening the file
Hi, A power shell script is opening an excel file where on opening the file it is set to an automatic data refresh and at last script closes the file. I wrote a simple macro to auto-save the file...
HansVogelaar
Dec 07, 2022MVP
Your VBA code runs when the workbook is closed, but the error occurs when the workbook is opened, so it must be caused by code that runs then.