When I run my script, at the end I have
ActiveWorkbook.SaveAs Filename:=path & fnameBLT, FileFormat:=51
To save the file to a new xls file. (its in fact sheets hidden, specific sheets actiive and with protection. This to pass on to someone)
All seems to work, file is written as I want, only issue I'm facing is following.
My file is now called MYFILENAME.xlsx ... when I run the above this file I'm working in gets renamed to the new dynamic naming in the above (so NEWNAMING.xls.
The fact that it gets a new name and saves that is ok, that's what I wanted, but it also opens . That means that MYFILENAME.xlsx is closed/no longer visible and the NEWNAMING.xls is now visible.
Is there a way to set it that this only runs in the background without opening the file?
ActiveWorkbook.SaveAs Filename:=path & fnameBLT, FileFormat:=51
To save the file to a new xls file. (its in fact sheets hidden, specific sheets actiive and with protection. This to pass on to someone)
All seems to work, file is written as I want, only issue I'm facing is following.
My file is now called MYFILENAME.xlsx ... when I run the above this file I'm working in gets renamed to the new dynamic naming in the above (so NEWNAMING.xls.
The fact that it gets a new name and saves that is ok, that's what I wanted, but it also opens . That means that MYFILENAME.xlsx is closed/no longer visible and the NEWNAMING.xls is now visible.
Is there a way to set it that this only runs in the background without opening the file?