How to prevent excel from asking confirmation about a formula? - apache-poi

I am generating an excel 2010 sheet (.xlsx) containing a formula. This sheet is made available to the user via download from a server.
It works fine, however formula is not initially enabled on the generated excel: user has to click on an "enable content" popup in order to display its results.
Why is that? And is there a way to prevent this?

Related

Disable access to a confidential tab

I would like to send an Excel file to a client with confidential data in the last tab “Use_FeeTR”.
The client should have the ability to change some parameters in the first tabs to run scenarios that will use the confidential tab to calculate some prices, with those prices feeding an output tab for him.
However I don’t want him to see any calculations or info from the last tab.
I did the following:
Hide the last tab and protect the workbook structure with a password
OR Hide in VBA environment with xlsSheetveryHidden
Then protect the cells in the first tabs that are linked to Use Fees so the client cannot see the name of the tab in the formula
It works well, however if he really wants to see the data in the confidential tab, he can still open VBA project, find the name of the tab in VBA project > Micro Excel Objects, open a new tab, enter in the first cell Use_FeeTR!A1 and draw the formulas to see the all values of confidential tab.
Is there a way to hide spreadsheet name in VBA project > Micro Excel Objects? or can I disable VBA for this file (restricting access to VBA project with a password)? I tried to "lock project project from viewing" in VBA Properties but I can still see that tab names in Object list

creating dynamic hyperlinks when importing data into excel

I am trying to automate a process where data is queried from the database, downloaded into an excel file and sent to recipients. One of the column in the excel file needs to be a hyperlink. How can i make this happen?
I selected =hyperlink(A,B) into the column but the function appears as text and not as hyperlink.
I tried changing the web options to 'update links on save' but it does not help.
Only when i click in the cell and hit enter does the hyperlink appear. This is not an option
Opening the file and adding a new column to use the hyperlink function is not an option either since the process is being automated.
The tool allows me to export into an xlsx and not a xlsm so i am assuming i cannot use macros to do the job.
I tried researching the answers for similar questions but didnt find any that i could use which will generate a url dynamically without me having to open the file. Any ideas?
I also tried another tool and they were able to send out emails with links. I do not know how they do it internally but i do not see any hyperlink functions when i tab into the hyperlink column.
Cell type should probably be set to "Generic".
You may also need to trigger a "Refresh" after the workbook is filled with all the data. Sometimes I need to that manually - but only once. I have no idea why it happens.

The Excel Hyperlink formula creates a hyperlink that does not open from Excel

Update: It works fine in Microsoft Online. It also works for other websites from the desktop version of Excel. I have contacted the iDox vendor.
I used a nested Hyperlink(Concat()) formula in Excel 2016 to create a column that changes a dynamic URL based off of another column in my table. The URL is 238 characters, so the conversion does not generate an error. However, if I click the hyperlink in Excel, it takes me to the search page, not the search results, yet copying and pasting the URL into the browser or following the link from Google Sheets it works fine.
I also tried copying and pasting the results into text and converting to url again, but still could not open from Excel. Did I skip a step that prevents Excel from properly opening the URL? Ideally, a solution will not use VBA or Macros.
=HYPERLINK(CONCAT("http://idox:8080/idox/searchresults.jsp?advanced=false&collectionId=2&libraryId=15&field_parcelnumber=&field_saledate=&field_buyername=&field_sellername=&field_property_street=&field_alternateid=&field_sdf_id=",[#[SDF ID]],"&search=Search"))

How to avoid the editing of a macro in Excel?

I have written a macro in Excel. When I send it to some user, he should not be able to see the macro.
Say I have a Excel workbook sample.xls, and it has a macro button to save the workbook to the server. When some other user opens the workbook, he should not be able to edit the macro behind that button.
How do I block other users from editing the code?
To lock a VBA project for viewing
Open the document, template, or database that contains the VBA project you want to protect. For Outlook or FrontPage, start Outlook or FrontPage on the computer that contains the VBA project you want to protect.
Open the Visual Basic Editor.
In the Project Explorer, right-click the project you want to protect, and then click ProjectName Properties on the shortcut menu.
On the Protection tab, select the Lock project for viewing check box, enter and confirm the password, and then click OK.
You can password protect it. But I'd suggest you search how to do it for your specific version of MS Excel. There is a link which shows how to do it in MS Excel 2003, I think: http://www.ozgrid.com/VBA/protect-vba-code.htm

Embedding excel workbook on a website

I have a payroll excel workbook that I want to embed on our company intranet in order so that employees can open the page, fill out the appropriate cells in the spreadsheet and print it out. The workbook has countless pages and is filled with macros so simply recreating the table in HTML wont work. I have attempted to use Skydrive to do this but unfortunately the workbook is excel 93-2007 format which is unsupported for embedding. What is another way to go about doing this? Ideally I would like to have it on its own page, viewable in an iframe.
Is very simple., save the excel in another version -2007 or 2010 and that's it.

Resources