Excel Macro
Asked by Anders Bruhn Fagerjord:

I have embedded an Excel spreadsheet using the Excel macro. The sheet have columns A - AU. On saving I have used "Hide" function on several columns. When displaying sheet in Confluence all columns A - AU is displayed.

Is this just not possible to achieve with the Companion App?

Kind regards Anders


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Anders Bruhn Fagerjord](/t5/user/viewprofilepage/user-id/4275566) ,

I think you can't achieve this unless you use any additional apps.

For example, we can suggest trying our [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app.

The first step will be using the [Table from CSV](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+from+CSV+macro) macro (supports attachments and URLs) macro to embed your Excel table onto Confluence page.

The second step is to wrap this macro into the [Table Filter](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro) macro where you'll be able to hide columns, filter your table and perform calculations.

comments: author: Anders Bruhn Fagerjord
body: Hi [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

I'll try to follow your suggestions. Thanks.


author: Anders Bruhn Fagerjord
body: Then this is tested. In the process I found that the Table Filter macro gets embedded when you use the Office Excel Macro.

Filtering is possible, even if its time consuming to get done. In larger projects you may add xls sheets all the time and then it gets complicated.

When using the Hide function in Table Filer, remember to click on Save in the filter drop down.

I have added a rating of the app, trying to explain the issues. And the main issue of course is that the Office Excel Macro don't display the sheet as it is saved in Office.

Thanks for your help and I'll wait for an update of the Office Excel Macro before I embed more xls sheets. I will rather use a link to access the file, even if this is not what I really like to do.


author: Katerina Kovriga {Stiltsoft}
body: Try the Table from CSV macro - if you use Google Sheets, then you'll be able to connect your [sheet to Confluence via its URL](https://docs.stiltsoft.com/display/public/TFAC/Outputting+tables+from+Google+Sheets+and+Google+Drive+in+Confluence).

It is rather convenient because you'll be able to update you Google sheet and all the changes will be automatically reflected in Confluence.

And then you'll be able to filter/hide columns with the Table Filter macro.


author: Anders Bruhn Fagerjord
body: Not much luck with that. Doesn't seem that macro liked the file.

java.lang.ArrayIndexOutOfBoundsException - null Identified line separator characters in the parsed content. This may be the cause of the error. The line separator in your parser settings is set to '\[lf\]'.


author: Katerina Kovriga {Stiltsoft}
body: Please, raise a [support request](https://jsd.stiltsoft.com/servicedesk/customer/portal/2/user/login?destination=portal%2F2) then and attach the screenshots of your Google Sheet table and the Table from CSV macro settings. We'll try to give you some hints.


author: Anders Bruhn Fagerjord
body: OK, I can do that. Though its not a Google Sheet. Its Excel.


author: Katerina Kovriga {Stiltsoft}
body: Yep, then the screenshot of your opened CSV file (so we'll check delimiters).


author: Anders Bruhn Fagerjord
body: Rest my case. I didn't pay attention on file format. Chose a xls and not csv. Sorry. When done correctly it looks ok.

This said I lost functionality a have in the xls with e.g. Data Validation and Conditional Formatting.

This still don't meet my expectations I guess.


author: Katerina Kovriga {Stiltsoft}
body: We have conditional formatting supported in the Table Transformer macro - our bundle of macros is supposed to bring Excel features into Confluence.

So you may wrap your CSV macro in the Table Transformer macro, list only that columns which you want to display and apply conditional formatting based on the Wiki Markup.

Here is an [example](https://docs.stiltsoft.com/display/public/TFAC/Advanced+table+cells+formatting#Advancedtablecellsformatting-Conditionalformatting).

I understand that it may look not so simple but Confluence (and especially Cloud editor) has its limitations which we try to overcome with our app.


author: Oki__PolarisOffice_
body: [@Anders Bruhn Fagerjord](/t5/user/viewprofilepage/user-id/4275566) I would like to recommend [Polaris spreadsheet for Confluence](https://marketplace.atlassian.com/apps/1223556/polaris-spreadsheet-for-confluence?hosting=cloud&tab=overview). It enables you to edit an excel file in a confluence page without any conversion. It also offers the advance view mode that supports filter, freeze pannel, search and etc.

Please check how to insert your excel files in confluence pages. [https://www.youtube.com/watch?v=OELp_2G62oI](https://www.youtube.com/watch?v=OELp_2G62oI?)


author: Shardul Juyal {Addteq}
body: Hi [@Anders Bruhn Fagerjord](/t5/user/viewprofilepage/user-id/4275566)

While the feature is not available in the companion app, You can try our [Excellentable](https://marketplace.atlassian.com/apps/1211672/excellentable-spreadsheet-for-confluence?hosting=cloud&tab=overview) spreadsheet.   
With Excellentable you can import a .xlsx with hidden rows/columns or just hide rows/columns on the fly.


Tags: cloud

confluence-cloud

macro