This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hi,
My flow seems to output corrupted excel files rendered from a db, and the output tool is set up to output to a new filepath created beforehand with a formula tool.
I see it is corrputed when I run a VBA macro on an excel template that needs to open this output files from Alteryx..and because of this error I can not run my VBA code..
Any thoughts?
Pretty urgent.
Thank you!
M.
Solved! Go to Solution.
Hi @Tmanuela ,
I found this post from @MsBindy which suggests a way to solve this by adding a command into your VBA to repair the file.
Sub Import_Click()
Application.DisplayAlerts = False
Workbooks.Open "filepath/filename.xlsm", CorruptLoad:=XlCorruptLoad.xlRepairFile
End Sub
Another suggestion, from @Amilykassia is to update your Protected View settings:
- Go over to the File Menu and click on Options
- In the Options window, choose the last tab,Trusted Centre
- Now click on ‘Trusted Center Settings’
- In the new window, choose ‘Protected View’
- Unchecked all the options available and click OK
Hi @jamielaird ,
Thank so much for your reply, I did applied VBA code and repaired all corrupted excel files, now runs ok, and extra applied settings mentioned on 2nd solution.
Cheers,
M.