You could try this…
- Add an Invoke Code activity
- Add an argument to the Invoke Code activity called ‘filepath’
- Add the below script to the code parameter
- Pass the filepath of your saved Excel file to the filepath argument.
Script:
System.IO.File.SetAttributes(filePath, System.IO.File.GetAttributes(filePath) Or FileAttributes.ReadOnly)
Example: