I am working on converting a macro that deletes a bunch of content and removes the VBA components of the software and then saves the files to .xlsx.
In the locked version of the software the process I have mostly working is:
Also, is possible to get the path to the save file folder (rather than the full path of the save file)? If not, I can figure out a way to extract this, but I would rather avoid the additional steps if possible.
Thanks for the help
In the locked version of the software the process I have mostly working is:
- Save the secured file
- Delete the unwanted content in the secured file
- Open a new workbook (using “workbooks.add”)
- Copy the remaining content of the secured file to a new workbook
- Save the new workbook as an unsecured file
- Close the secured file (without saving)
- Save the secured file
- Delete the unwanted content in the secured file
- Save the secured file directly as an unsecured file
- Close the secured file (without saving)
- Re-open the original secured file
Also, is possible to get the path to the save file folder (rather than the full path of the save file)? If not, I can figure out a way to extract this, but I would rather avoid the additional steps if possible.
Thanks for the help