Why won't my Excel file download when using the edit feature of the Excel macro?
Asked by Jonathan Johnson:

Hi I'm new to the community and to Confluence in general, so please let me know if there is another resource or place I can go to. I need to upload an Excel file to a page and have that file be editable from that page. To display the file and have the ability to edit it more or less from the page, I found the Excel macro and downloaded the Atlassian Companion app after reading this article: <https://confluence.atlassian.com/conf615/edit-files-967337829.html>

However, when I click the edit button, I get the following error message pictured:

![Screen Shot 2020-05-03 at 9.51.41 PM.png](/t5/image/serverpage/image-id/93258i196983D336FB74A6/image-dimensions/441x507?v=v2 "Screen Shot 2020-05-03 at 9.51.41 PM.png")

I have tried removing the attachment and reuploading as xls and then re-downloading, but got a different error message indicating an HTML issue, but I'm afraid I'm not literate enough in this kind of issue to know how to fix it. Any tips?


Answers:
author: Alex K
body: Hi [@Jonathan Johnson](/t5/user/viewprofilepage/user-id/3900851) ,

Does the file excel file open correctly if you download it directly from the attachments page (not using the Companion app)?

You can see the file downloaded by Companion by navigating to your home directory (your username), showing hidden files (CMD + Shift + . for MacOS) and then opening the .atlassian-companion directory. Every file that is edited by Companion gets its own subdirectory, you can sort by date created or delete everything and trigger the edit process again to isolate a particular file. Do you see the excel file here?

comments: author: Jonathan Johnson
body: Hi [@Alex K](/t5/user/viewprofilepage/user-id/1882108) , yes to both. Interestingly (not sure if it's related), when I click on the attachment from the attachments page, the preview never loads.

But yes, I did find the file there. What can I do from that point?


author: Alex K
body: [@Jonathan Johnson](/t5/user/viewprofilepage/user-id/3900851) Do you get any error from Microsoft Excel if you open the file directly (by double clicking it) ?

Have you tried using the Companion app with a different file that you have uploaded to Confluence?


author: Jonathan Johnson
body: [@Alex K](/t5/user/viewprofilepage/user-id/1882108) Yes, I get that same error when trying to open from the atlassian-companion directory.  

I tried just now to use the companion app to download a Word file using the Word macro. I got the following error message. I clicked no and then got the error message below it.

![Screen Shot 2020-05-04 at 9.21.37 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/93331i529CCA2202CDEA78/image-dimensions/339x342?v=v2 "Screen Shot 2020-05-04 at 9.21.37 AM.png")![Screen Shot 2020-05-04 at 9.22.12 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/93332iF08CBC585C67E76D/image-dimensions/377x204?v=v2 "Screen Shot 2020-05-04 at 9.22.12 AM.png")


author: Jonathan Johnson
body: [@Alex K](/t5/user/viewprofilepage/user-id/1882108) Turns out this was a VPN issue. It's working properly now, thanks


author: Alex K
body: [@Jonathan Johnson](/t5/user/viewprofilepage/user-id/3900851)

Great news! ?


Tags: companion-app

macro

ms-excel