Insert Excel validation list in excel using Javascript - excel

We are using Excel 2016 Add-In to load data from DB to Excel 2016 (few Excel 2013). There is a column 'Status' in Excel. Currently it is simple text cell. We need Excel drop-down list in Status cell (refer below example image).
We are using JavaScript for loading Excel 'Office.context.document'. We need the solution in JavaScript.
Please provide a solution in JavaScript, C# or Insert HTML in Excel etc.
Thanks in Advance...

Related

Inserting OMML formulas into Excel sheet via office.js

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

Is it possible to call an Excel add-in from VBA in Word in reasonably simple way?

I have an add-in that helps fill Excel tables with data from Atlassian Jira, used by several kinds of Excel files. The add-in has been created with the Excel VBA editor, not VSTO.
Now I need to use the functions of this add-in from macros in a Word template.
To avoid duplicating the code base, I would like to use this add-in in Word.
Trying to add a reference to the Excel add-in in Word triggers the error "Can't add a reference to the specified file".
Is there a reasonably simple way to achieve this?
If you want the best next thing you can do is inserting Excel table into Word document and then adding to that document your VBA code.
To add the Excel tabel just use Insert -> Table -> Excel Spreadsheet -> your toolbar will change to excel toolbar with the option for adding your VBA code like in Excel.

EXCEL 2010 VB code xml data format

I have a complex spreadsheet that I need to get into xml data format. I've used Excel 2010 to create the complex spreadsheet. The spreadsheet itself has multiple tabs, and a table with a lot of formulas. The spreadsheet also contains some VB code for hiding a tab unless it is a specific user. I need this in XML data format, along with the VB code intact. If I save it as XML Spreadsheet 2003 format, it gives the correct formatting, however the VB code is lost during the saving of the spreadsheet. Is there an option out there to save this file in XML Spreadsheet 2003 format that will keep the VB code?

datagrid as excel editor in c#

I have a requirement to display data from excel document in a C# win form datagrid. Add formula functionality of excel and apply in the datagrid value. When saving datagrid values to a excel value save same like excel file including formulaes.
Can any one help me how to do this one.
Is it can be doable through OpenXml or OleDB because I don't want to depend upon MS Office installation in client place.
Thanks in advance.
Sharma
this requirement of yours sounds like a project itself ! but I am sure this can get you started http://www.codeproject.com/Articles/17853/Implementing-an-Excel-like-formula-engine

drop down list compatibility issue between Excel 2007 and Excel 2010

I prepared a spreadsheet where I used the drop down list command in several cells (data validation, list). I needed to provide two versions of the same spreadsheet: one saved as Excel 2007 file, and the other one as Excel 2010 file.
If I open the Excel 2007 file with Excel 2010, in the cells where I inserted the drop down list, the reference to the cells that contain the list is somehow changed and the drop down list shows the wrong data.
For example, if I specify to use as the data in the list the values of cells C20:C25, when I open the file with Excel 2010 the cells are changed to D15:D20. I did not find a trend in the "shifting" of the referenced cells.
How do I prevent this without using Excel 2007 for the 2007 file only and Excel 2010 for the 2010 file only?
I have found a workaround that works for me.
If this is your original dropdown box formula:
=Sheet2!A1:A5
Then change it to:
=INDIRECT("Sheet2!A1:A5")
For me, this stops it removing the dropdown when opening in Excel 2007 after saving in Excel 2010. I found this out accidentally because I needed INDIRECT to define my dropdown range, as it varied.
Jeremy
I found the answer here: http://www.ozgrid.com/forum/showthread.php?t=150080
"If your dropdown is a data validation list and you have used a list on another sheet as the
source, then you need to do what Tayt said, since versions pre-2010 cannot refer directly to
a range on another sheet and the validation will simply disappear."
That solved my problem; hopefully it'll solve yours.
You are opening a 2007 file with 2010, saving it and closing it. Perhaps 2010 is automatically converting your file to the 2010 format.
Have you tried intentionally telling 2010 to save your file in the 2007 format?
I solved this by having both Excel 2007 and 2010 installed.In Excel 2010 I selected the cell that should have contained the dropdown-list and then pressed data validation from the data tab. I just copied the values in excell 2007 and saved.
If you find the sheet to be protected, you can use this solution : http://mcgimpsey.com/excel/removepwords.html
Hope it helps

Resources