I'm trying to find a way to get Excel::Writer::XLSX to write a spreadsheet that will prompt the user to open it Read-Only. In the way MS Excel can when Save As.. Tools, General, Options is used.
Excel prompting user on file open
This functionality was added recently in Excel::Writer::XLSX 1.08 via the the workbook read_only_recommended() method: Changes file.
Related
I have Matlab code using xlswrite to save data to an excel sheet.
Can I open Excel such that Matlab will still be able to write? Also, can I refresh silently?
(In Notepad++ this would be realized via Preferences > MISC > Update Silently, very useful for logfiles)
Thanks!
I am not aware of any way to achieve your 'Refresh Silently' functionality.
Of course, you can open an Excel file read-only easily using VBA or via the File Open dialog.
I'm running into a strange issue when trying to load excel spreadsheets into my database through SSIS (2012).
I'm getting the spreadsheets (which are xlsx files) via email, and then I manually save them to my local drive (C:\temp). When I try to use the excel file as a source in SSIS, I am not able to pick any excel sheets in the book.
The file is not corrupted, not open on my machine, and not password protected. It is, however, opening in Protected View. So I go into Excel and turned off all the Protected View options, but no cigar. The only way I am able to use the file as an excel source in SSIS is by opening it, and saving over it.
Does anyone have a similar experience? Other than opening and saving all of the files manually, is there a better solution?
It's a known issue with xml based excel (xlsx). If you can save them as xls, that will solve the problem. If for some reason that's not possible you may need to use OLE source to read them.
I have a report that I run from a system once a week, and the data is exported into an excel document. I have set up the tool that exports the data to excel to do a decent job on formatting, but there is still more that I need to do once the data is in excel.
Is it possible to create a stand alone macro, save it in a Microsoft office folder and be able to call it after I open this file? I have written plenty of macros that are part of ONE given spreadsheet, but never tried one that was open to many spreadsheets.
IS it possible, and a starting direction of good resources of where I can learn how to achieve this goal? Thank you.
...and be able to call it after I open this file?...
You have 2 very good options
1) Write and save your macro to Personal file. See this link for more information
Topic: Deploy your Excel macros from a central file
Link: http://office.microsoft.com/en-us/excel-help/deploy-your-excel-macros-from-a-central-file-HA001087296.aspx
Quote from the above link:
Have you ever wanted to use that really handy macro in all of your Excel worksheets? You can. This column explains how to place your macros in a file called personal.xls and make them available each time you start Excel.
2) Create an Add-In
Topic: Creating an Excel Add-in
Link: http://msdn.microsoft.com/en-us/library/aa140936%28v=office.10%29.aspx
Quote from the above link:
You create a Microsoft® Excel add-in by creating a workbook, adding code and custom toolbars and menu items to it, and saving it as an Excel add-in file.
I'm having the following issue: I've an Excel spreadsheet with a lot of VBA codes and ActiveX controls, including RExcel formulas.
The Excel version is 2007.
When I try to open this file, Task Manager says Excel isn't answering and something starts like if Excel started running endless codes; I deactivated each control and it still seems broken.
I would like to recover at least some formulas I've written in that spreadsheet, but this is actually impossible by opening the spreadsheet in conventional way.
Could you tell me how I can "read" formulas and text in that spreadsheet without opening it by Excel?
Thanks,
Indeed have calculation set to manual for a start.
Now set your security settings such that macros and activeX are disabled:
Excel Options > Trust Center > Trust Center Settings... > Macro Settings > Disable all macros with notification
For ActiveX I am not sure if there is a menu in excel-2007 like for macros, but if there is make sure it is set to not run as well.
Now you can open your excel workbook and it will not run your macro's and shouldn't auto calculate or update!
ADDED: I have had something like this in the past and this is what worked in 1 occasion: install an other office excel application, like open office (the calc application has the excel functionality) and see if it opens in that application. Then if it does, save the file (under another file name) and close it. Open the new file under MS Office Excel, and see what is still recoverable.
Good luck!
use a tool like 7zip to extract the files. the sheets/formulas are in the .xml
the code in a macro enabled spreadsheet is in a .bin file
this can be read with MalOfficeScanner
I need to get rid of an XLA (excel add-in) from a spreadsheet, but everything on the web seems to point to renaming/deleting the xla file.
This is not an option as the xla file is used by many other spreadsheets and is on a shared drive.
Are there any other alternatives?
I copied all the classes and modules (drag and drop) from the xla to the 'local' project.
Save and close xls
I searched for the xla project name in the registry (with excel closed) and deleted the value.
Open excel
Done
Move or rename the .xla file, then go to add-in manager. select the add-in, and click "delete" on the pop-up massage.
Do you mean you want to remove it from the add-in dialog box? Disconnect from the shared drive, load Excel, and try to install the add-in. Excel will tell you it can't find it and ask if you want to remove it. Once you've removed it, reconnect to the shared drive.
If I understand your question, the solution might be:
On the Tools menu, click Add-Ins.
In the Add-Ins available box, clear the check box next to the add-in you want to unload, and then click OK.
Source: http://office.microsoft.com/en-us/excel/HP052037321033.aspx