I have an list of Strings (A,B,C,D,E) and i have added this list to cell using range and data validity in libre office. but it only selects one value at a time. I want something like if i select first D and then C output should be like D,C multi-select. I have already studied all the questions on stack overflow but i haven't found anything. Thanks, in advance.
POI doesn't support multi select drop down.
You can follow the below link.
http://poi.apache.org/spreadsheet/quick-guide.html#Validation
As the provided link requires VBA scripting to do things, it is not possible to do this in POI currently as support for reading/adding VBA code is very limited. You could try to add it via the low-level API of POI, but would first find out where Excel stores the VBA code inside the .xlsx-file (it's actually a zip-file, so you can unzip it and take a look).
See the following for some pointers:
Macro support in POI
How to call a Macro from Apache POI library in Java?
How to call an Excel VBA Macro from Java Code?
Related
Is it possible to add a mathematical formula (not an Excel equation) of OMML type into an Excel sheet via office.js? I know you can add them manually by using "Insert" / "Equation" ("Equation" just below "Symbol"), which results in an OMML formula (an <m:oMath> element in the Excel sheet XML source).
Thanks Stefan,
Unfortunately, Office JS Excel API currently doesn't support OMML type. Therefore, I would suggest that you could submit the request and upvote this request at uservoice. https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback?category_id=163563
I made a VBA function which turns my raw data into a table format since I want to use a pivottable for charts. The problem is that my file need to run on excel online and VBA is not running in a cloud environment.
Is there a way to do this with functions/power query/...
Thanks in advance
Took a while but i managed. It is in fact Excel online compatible Each formula is displayed above the corresponding column. I added some data to make sure it could handle extra data.
=IF(F8<>"",ROWS($G$7:G7),NA#)
=AGGREGATE(15,6,$G$8:$G$32,ROWS($G$7:G7))
=IF(ISNUMBER(H8),IF(ISTEXT(INDEX($B$6:$C$32,H8,1)),INDEX($B$6:$C$32,H8,2),I7),"")
=IF(ISNUMBER(H8),IF(ISTEXT(INDEX($C$7:$D$32,H8,1)),INDEX($C$7:$D$32,H8,2),J7),"")
=IF(ISNUMBER(H8),INDEX(E$8:E$32,$H8),"")
=IF(ISNUMBER(H8),INDEX(F$8:F$32,$H8),"")
This is it. I am trying to get the list of built-in functions of Excel (not built-in functions of VBA) by using VBA.
I know how to retrieve UDFs and functions in non-protected XLA and XLL addins, but I can't find a way of getting the list of excel functions. Do you know how I could obtain that using VBA? I think it should be a way.
I would like to avoid using list of functions copied from some site (or ms help), because that would ask the user to check it, in a regular basis, to keep it updated, which is not an option.
BTW, the context of this is a kind of parser of excel formulas to vba, which I have almost finished; I only miss this.
Thank you!
This is a partial answer. It only displays worksheet functions installed with your version of Excel.
Open the VBA window
Click View > Object Browser
Scroll down the Classes pane and click on WorksheetFunction
The list of functions will be displayed in the Members pane
Another open issue is how to transfer the displayed list of members into a worksheet column.
I have one report which is all time updated and changed the file name. I want to know is it possible to make a formula (Except for Mecro code) to another worksheet without open this worksheet.
I am using indirect formula but it required to open worksheet.
Both of these sources indiciate that this cannot be done with a formula alone. However, they propose workaround solutions using vba code, as well as this stackoverflow answer
I strongly recommend to use PowerQuery. Though it uses M language, you can use it with GUI. If your version of Excel is prior than 2013, you must install the addon
I have a table (named as Logs) in Sheet1 to which I am writing through a program. I need to copy the content written to the table Logs to Sheet2 as LogReport when I open the workbook. Is it possible to do this without using macros or Power Query option in Excel. I am working with Excel 2010. I have been searching for a while, but I was unable to find a solution which match the requirement.
Looked through the functions available as well, but I was unable to find a possible solution. Appreciate if I can get some help.
"Is it possible to do this without using macros?"
If under "macros" you mean VBA then the answer is No.