dougmarkham
Active Member
- Joined
- Jul 19, 2016
- Messages
- 252
- Office Version
- 365
- Platform
- Windows
Hi Folks,
We have an old excel model whose VBA code pw protected. The model only imports *.xls format excel files.
There is an excel template file which the operative uses to generate the import files for old model.
However, this user generates lots of excel files that have to be in *.xlsx format.
I was wondering if there is any VBA code that can change the settings in: Options-->Save-->Save files in this format?
I have had 'a Google' to find out if someone else has achieved this, to no avail.
I know how to run things on wb open and wb close, but is there any VBA to change excel options? Would anybody be able to help with this issue?
Kind regards,
Doug.
We have an old excel model whose VBA code pw protected. The model only imports *.xls format excel files.
There is an excel template file which the operative uses to generate the import files for old model.
However, this user generates lots of excel files that have to be in *.xlsx format.
I was wondering if there is any VBA code that can change the settings in: Options-->Save-->Save files in this format?
- i.e., so that a) the VBA code runs from the opening of this template file, b) the VBA changes the default SaveAs file type to *.xls in [Options-->Save-->Save files in this format]; c) however, when the template file closes, the VBA code automatically changes the [Options-->Save-->Save files in this format] back to *.xlsx file type?
I have had 'a Google' to find out if someone else has achieved this, to no avail.
I know how to run things on wb open and wb close, but is there any VBA to change excel options? Would anybody be able to help with this issue?
Kind regards,
Doug.