I am generating a spreadsheet that users can fill data and upload again. And most column headers have comments with some minor rules (e.g. "Required").
The XLS files look great on Microsoft Excel and when imported on Google Docs. Where all the comments show up only on mouse over. But on LibreOffice, all the comments are visible from the start. Users can work around by selecting all cells and then view>comments. After that, the comments only show up when moused over, like on microsoft excel.
Is there any way to generate the XLS file in apache POI (XSS) in a way that the comments will be hidden in libreOffice too?
Related
i am trying to have VBA open up a specific word document (this document is protected but has boxes where you are able to edit text). i will then need to fill out said word documents editable areas with variables in the excel document. i have no idea where to start with this code and was posting to see if this is possible and how i could do it.
Additional note. Would it be easier to have vba create a whole new word document in the code so it can just add in all the text?
Since there isn't any code. I'm not sure what stage you're at in this but, from how I read your question you have two ways to do this. Either have your vba code in the word document that opens an Excel file to read cells or have the excel document create a word document with information already filled out. I would recommend using Word to read Excel.
This Question has information about setting fill-able values in Word. There are also a lot of resources out there to find out how to get cell values and open excel documents using VBA.
All this being said. I would say you should probably look for alternatives to all of this. Such as powerapps connecting to an excel file or change your excel file to a SQLExpress database to use that in finding data. The reason I recommend this is because it's much more scalable.
I have a txt file that automatically do updates in a daily bases, I have to open that txt file in Excel (Delimited) and review the data.
What is the way to make Excel automatically import that specific txt file?
Or in another words: I need to Double click on a saved Excel file and it will automatically import that specific txt file (instead of doing File->open->Browse...)
Thanks!
This should work
http://www.jkp-ads.com/Articles/importtext.asp?AllComments=True
In case you are getting your data from sql or any other data source , you can update the data connections in EXCEL
Just Open the excel file and hit refresh
What version of Excel do you have? If you have Excel 2016 or later, you can use the new functionality under the 'Get and Transform' tab to do this really easily. In previous versions, you can download the free Microsoft "PowerQuery" addin that was the forerunner for this. It was previously a separate add-in called PowerQuery, and is now bulk standard in Excel.
There's many excellent walkthroughs on the internet showing this exact type of activity. Google "PowerQuery" and put a date filter on your results to show just the last year, as the functionality is constantly being updated. Add "Ken Puls" to your search term, and see what bubbles to the top. Then replace Ken "Mike Girvin" or "ExcelIsFun" and you should see like a zillion excellent tutorials on PowerQuery. Try "ExcelCampus" too, as Jon has great tutorials, as does "Chandoo". Also replace PowerQuery with "Get and Transform" and repeat those same searches.
PowerQuery is simple to learn, and lets you do stuff just by "muddling through" that would otherwise take a year or more to learn if you wanted to pick up VBA.
It acts like a user-friendly macro recorder, only unlike the macro recorder it spits out reusable code that doesn't have hard coded references in it, meaning all you need to do his hit Refresh.
I have an important spreadsheet I have created using Google Docs. This is over many tabs pulling numbers into the first tab. It all works well in Google Spreadsheets but I need to download it.
When I download it as Excel and open it it shows OK but asks me to enable editing / saving. As soon as I do this the data changes on the sheet and all my formulas are screwed.
Can anyone help?
I am new to this so I hope I have posted in the correct area :)
Do you already own excel ?
To export a Google Sheets file to Excel, open the Sheet, go to File > Download As and select .xlsx.
I have a ppt presentation with hundreds of charts that are all linked to the same .xls file. I want to send the presentation to the client and I want him to be able to access the data. However, I do not want him to open the entire xls file when he clicks on edit data.
So what I would like to do is to "convert" the linked charts to charts with an embedded excel that only contains the data concerning the specific chart.
(I am not sure if that's the right way to put it. I feel like the distinction between embedded and linked is not as clear cut anymore as it used to be in previous office versions)
I have found a macro for ppt 2003 that simply copies the old chart and does
Set oSh2 = oSl.Shapes.PasteSpecial(ppPasteOLEObject)(1)
but I think this does now longer work ( I am working with ppt 2013).
Any ideas on how to do this are highly appreciated. Many thanks
If you don't want to give him access to the entire original workbook/worksheet, you'll need to create multiple worksheets, each with just the data you DO want him to be able to get at and then either link or embed those into your PPT file.
If you create the charts using the old MS Graph mini-app (still included, if optionally, with Office) you can link data from an external Excel file into the graph datasheet. I'm almost certain that doing it this way will give others access to the graph datasheet (ie JUST the data used for the graph) but not to the linked source XL file.
I don't see a way of doing this with the new chart engine.
[SOLVED (see answer below)] I am using SpreadsheetWorker API to make working with Open XML SDK 2.0 easier. I have an excel spreadsheet that I use as a template when I generate new excel spreadsheets through SpreadsheetWorker. I am getting a "found unreadable content" error when I open my generated files, and excel will correct the problems with the file if you allow it. This is not suitable for production.
While adding hyperlinks to excel cell, try to avoid dynamic URL to screenTip attribute. Excel cell takes only 256 charecter long for tooltip. The repaired excel file chops off the characters after this limit.
For Spreadsheet gear,
worksheet.Hyperlinks.Add(worksheet.Cells[startRow, startColumn], href, null, "Click here to see details","textToDisplay");
Solved my own question: In my excel spreadsheet that I used as a template, I had some blank cells with 'Hyperlink' styles applied to them. Setting the style of these cells to 'Normal' fixed the problem, and I no longer get the "unreadable content" error when I open generated spreadsheets for the first time.