Atlassian Companion does not work with Macros (XLSM)
Asked by Thiago Hermida:

As you can see in the attachments, Atlassian Companion does not recognize the "xlsm" MACRO file. It is working pretty well as "xlsx" (no macro).

Nevertheless, I want to improve my excel file and Atlassian Companion is a limitation at the moment.

Could you please help me?

Many thanks!

Best,

Thiago

*** ** * ** ***

![1.png](/t5/image/serverpage/image-id/196972i3BA7F20608CE759D/image-size/large?v=v2&px=999 "1.png")![2.png](/t5/image/serverpage/image-id/196973i2E460CB2537CBD36/image-size/large?v=v2&px=999 "2.png")


Answers:
author: KC Wong
body: While the Companion app will open .xlsm in Excel just fine (when you click edit on the attachment), the Office Excel macro on a page is a different matter entirely.

Turns out you have to save your macro-enabled spreadsheet as .xls (old Office format) instead of .xlsm.

See this thread:

<https://community.atlassian.com/t5/Confluence-questions/How-to-post-macro-enabled-xlsm-excel-content-on-the-confluence/qaq-p/675830>

comments: author: Thiago Hermida
body: Hi [@KC Wong](/t5/user/viewprofilepage/user-id/4906413), I tried it, but it did not work.


author: KC Wong
body: Does this thread help you?

<https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Atlassian-companion-App-not-able-to-edit-xlsm/qaq-p/1539033>

Apparently Companion version 1.2.5 supports macro-enabled Office documents.

comments: author: Thiago Hermida
body: Hi [@KC Wong](/t5/user/viewprofilepage/user-id/4906413)

thank you for the quick reaction, but unfortunately, It did not solve my problem!

I have installed the most recent version (1.3.1) and actually the problem is before editing.

It does not recognize the "xlsm" MACRO file as you can see in the first post. Am I doing anything wrong?

*** ** * ** ***

![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/197049i614AD836B6B7DF0A/image-size/large?v=v2&px=999 "1.png")


author: Thiago Hermida
body: I created a completely new page to make sure there is no bugs behind it.

MESSAGE/OUTCOME: "**No appropriate attachments**"

*** ** * ** ***

![2.png](https://community.atlassian.com/t5/image/serverpage/image-id/197084iB28F184B9A0F6B39/image-size/large?v=v2&px=999 "2.png")![3.png](https://community.atlassian.com/t5/image/serverpage/image-id/197087iA0B5B7899FCB14C0/image-size/large?v=v2&px=999 "3.png")


author: Thiago Hermida
body: Can any expert help me here?

comments: author: Alex K
body: Hi [@Thiago Hermida](/t5/user/viewprofilepage/user-id/4922329) ,

This is not a bug with Atlassian Companion, rather the "Office Excel" spreadsheet viewer macro (also known as Office Connector) does not support XLSM format.

I found two related bug tickets:

<https://jira.atlassian.com/browse/CONFSERVER-44322>

<https://jira.atlassian.com/browse/CONFSERVER-40730>

You should be able to edit the file in Atlassian Companion. You can view the file using the Attachments Macro or Attachments Page. Also the attachment thumbnail on the view page should have an edit button when you hover over it.

Regards,  
Alex K (Senior Developer at Atlassian)


author: Thiago Hermida
body: Hi [@Alex K](/t5/user/viewprofilepage/user-id/1882108), many thanks for your support.

Nevertheless, I got confused about your last message.

Below you will find both statements:

1. Office Connector does not support XLSM format

2. You should be able to edit the file in Atlassian Companion

How can I solve my problem? Do you have any other suggestion?

Best regards,

Thiago


author: Alex K
body: Hi [@Thiago Hermida](/t5/user/viewprofilepage/user-id/4922329) ,

My point is that the Excel macro does not work with XLSM files at this time. This is a bug and I shared related bug tickets.

Atlassian Companion is separate. There are ways to use Atlassian Companion other than the Excel Macro. Atlassian Companion supports XLSM.

Regards,  
Alex K


author: Thiago Hermida
body: Hi [@Alex K](/t5/user/viewprofilepage/user-id/1882108), many thanks for the quick reply.

"There are ways to use Atlassian Companion other than the Excel Macro."

Would you mind to share some of them?

Best regards,

Thiago


author: Alex K
body: Hi [@Thiago Hermida](/t5/user/viewprofilepage/user-id/4922329) ,

I mentioned these in my first comment. You can use the attachments macro - there will be an edit button for each attachment, similarly the attachments page will have an edit button associated with each attachment.

Also if you simply embed the attachment like you showed in this screenshot

![attachment-thumbnail.png](https://community.atlassian.com/t5/image/serverpage/image-id/197653iE993664CA364993D/image-dimensions/233x197?v=v2 "attachment-thumbnail.png")

Once the page is published, if you hover over the thumbnail, there will be an edit icon (depending on your Confluence version, I think it should be above 7.5)

See "other ways to edit files" here: <https://confluence.atlassian.com/doc/edit-files-170494553.html>

Regards,

Alex


Tags: atlassian-companion