excel

Best language to use when exporting an excel file

I want to write a macro program that takes in data from a text file and then arranges it in a specific manner in an excel file. I don't know which language has the best features for dealing with Excel. I prefer java, and I see someone made an api called JExcelApi, but I'm not sure about it's capabilities. I would like to be able to ...

[change] Vlookup onto another workbook

Hello, here is my dilemma. I have two worksheets one that has the name of clients and one that i want to copy the names to depending on the city. For instance: associated to each column is last name, first name and city. i have hundreds of names associated to different cities and what i would like is from worksheet1.xls to copy all the...

Get Excel.Application object from Process or hwnd in .NET

In C# I am trying to get an instance of an Excel.Application object from a Process object. This seems like it should be really simple yet I cannot figure it out and cannot find an example. To repeat, I have a System.Diagnostics.Process object that I know refers to a running Excel instance. I now need to recover a Microsoft.Office.Interop...

How to Convert String "YYYY/MM/DD" Formatted Date to a VARIANT Type Date and Vice-versa

How can I convert a "YYYY/MM/DD" formatted date to a VARIANT type date and vice-versa in C++? EDIT VARIANT VT_DATE Type passed by VBA code into an automation COM written in c++ ...

How to read and upload a xls file using spring framework.

Hi I have an xls file for eg. (abc.xls) how can i read and upload this file using spring. Can you help me with some sites where i can get some information on this. Thank you. ...

How to get the numbers matching with the name in vba code

Sorry about that. Basecly I want all the numbers in Col A That match with the names in Col B. I want to fill Col C with those numbers by order. Thank you ...

How to keep format within HTML converted to Excel

Hello, I'm working with an HTML table, that contains numbers (formated) and when I export this to xls file (just change extension... hehe) I loss some of the formated data. Example: in html I have " 1,000.00 | 500.00 | 20.00 " and in excel it shows like: "1,000.00 | 500 | 20" I want it to know if it is possible to show the very same...

Entering large amounts of text data in HTML form

Hi I have a web page that has a requirement to allow users to paste large amounts of text data from an Excel spreadsheet directly into the input controls of the page. Typically the user would be pasting anywhere between 150 to 300 spreadsheet cells that are all in one column. What are some good ways i could use to capture this data o...

Inserting and updating data in Excel

Hello, So far all the Excel stuff revolves around opening a file, writing values to it and saving it. Is there a way to update the data in the Excel (while it's opened) automatically? Thanks! P.S. I am looking for more information with respect to Microsoft.Office.Interop.Excel; ...

Powerpoint displays a "can't start the application" error when an Excel Chart object is embedded in it

This is a very common problem when Excel Worksheet or Chart is embedded into Word or Powerpoint. I am seeing this problem in both Word and Powerpoint and the reason it seems is the COM addin attached to Excel. The COM addin is written in C# (.NET). See the attached images for error dialogs. I debugged the addin and found a very strange ...

Protection of data in excel sheet.

How to prevent selection of cell/row and copy/cut of data from excel sheet,created dynamically in c# using SpreadSheetGear. ...

How to create Automation Add In Formula/Function and Excel Add In buttons (vsto) for them together?

Ok, let me explain it little bit better. Here is one example how to create formula/functions http://blogs.msdn.com/b/eric_carter/archive/2004/12/01/273127.aspx?PageIndex=1#comments I implemented something like that, I even added values in registry, so that this Automation AddIn doesn't have to be added manually in Excel, but automatic...

Excel c# convert cell to percentage

Hello. I need to convert a cell with a double to a precentage. I used a macro in excel and it says: Range("B5").Select Selection.Style = "Percent" When I do this in c#, it doesn't work: Excel.Range procentRange = xlWorksheet.get_Range("A1","A1"); procentRange.Style = "Percent"; Anybody knows how to do this? ...

C# exporting e-mails to excel on widndows forms using microsoft.office.interop.excel

I need to export some data to excel in my forms aplication, so i used microsoft.office.interop.excel and everything is ok except one thing. When exporting client's email I would like to make it an mailto: link. excellApp.Cells[row, 16] = "mailto:"+client.Email; doesn't work When I add hiperlink when exporting www field it looks like...

Programmatically Determine If An Excel File (.xls) Contains Macros

Is there any way to programmatically determine if an .xls contains macros, without actually opening it in Excel? Also are there any methods to examine which certificate (including timestamp cert) these macros are signed with? Again without using Excel. I'm wondering in particular if there are any strings that always show up in the raw ...

Is there a non-GPL spreadsheet library for ruby available?

Just looking for a free spreadsheet read/write library that is not GPL or LGPL. ...

VS 2010 VSTO Add in for EXCEL 2007 Won't load

Hi everyone, We have an application that is built with Excel as the front end using the Office object model. We were using a C++ shim to load it as a COM add in for Excel 2003, but I've updated it to use the latest VSTO for Excel 2007. I've also been using VS 2010 for the latest version. The problem is that everything works great on m...

Macro to Display String on Checkbox Select

I have a checkbox on sheet1 (there are about 7 sheets total). If the checkbox is selected (true), I want it to say "Approved" in cell M9. If the checkbox is not selected (false), I want it to say "Denied" in the textbox. Do I need to create a macro for that? If I want it to display the same text in cell M5 of sheet2, how would I put it...

Consolidating Columns in Excel

I have two columns in excel like the following a,apple a,bannana a,orange a,plum b,apple b,berry b,orange b,grapefruit c,melon c,berry c,kiwi I need to consolidate them like this on a different sheet a,apple,bannana,orange,plum b,apple,berry,orange,grapefruit c,melon,berry,kiwi Any help would be appreciated This code works...

C++ Builder and Excel Automation, where to get started?

I want to dynamically create and populate an excel spreadsheet with C++ builder 2009, but I'm not entirely sure how to go about it. Searching the web, I've narrowed it down to using OLE Automation. Moreover, I'm looking for a document or programming tutorial that can get me started. Is there a simple programming tutorial that also thorou...