Excel Calculations and VBA
In the following Excel spreadsheet, I need to make the following calculations: Input Color Selected Output ------- -------------- -------- 40 red 40x18 40 blue 40x12 40 green 40x16 40 yellow 40x13 39 ...
In the following Excel spreadsheet, I need to make the following calculations: Input Color Selected Output ------- -------------- -------- 40 red 40x18 40 blue 40x12 40 green 40x16 40 yellow 40x13 39 ...
i have an excel spreadsheet with 3 tabs one of the tabs contains formulas for one of the other sheets and i was wondering if there is a way of hiding it?? ...
So, I needed to take some data done in MS Word tables, and manipulate in excel. I decided to get it from word to excel via a VBA subroutine to "save time". My source word document contained like twentysomething tables. I took my source document's tables, extracted my data and made a new document, with a new table, only needing me to ...
Does anybody have any idea how to print an excel file programatically using C# and the Excel Interop? If so, can you please provide code? ...
Hi, I have a multiple columns representing Y values each against a specific x value. I am doing a scatter plot. When plotting each series, I can easily select the y values as they are present in columns but the x value is constant for each column and I cant seem to figure out how to repeat a constant x value against several y column val...
I'm nedding to implement excel formula autofill in C#. Let's suppose this formula is located at B100: =SUM($B$99:B99) I want to make this formula different at C100: =SUM($B$99:C99) This formula is only an example. Some real examples are: =(SUM($B${0}:B{0})/SUM({1}!$B${0}:{1}!B{0}) -1) =SUM(B{0}:B{1}) =B{0} + B{1} =C{0}+ B{1} ...
Hi everyone, At the moment i am using VSTO to take a SQL Reporting Services report and display it in Excel 2003 using the ReportViewer control. So bascially on a winform hosted inside Excel. But i also need to be able to display it without the ReportViewer control i.e. just straight into the cells of my Excel sheet. I'm wonder how I s...
Why does this work: ((Excel.Worksheet)Application.ActiveSheet).get_Range("A1", "A1").Value2 = text; But this doesn't: Excel.Worksheet activeSheet = ((Excel.Worksheet)Application.ActiveSheet); activeSheet.Cells[0, 0] = text; I need to do it the second way as I need to loop with rowIndex and colIndex. How can I do that? I get the er...
Consider that I've a excel sheet in below format: person age Foo 29 Bar 27 Now I want to read these values (using POI HSSF) and have to process them. What's the best way to do that? Note that I do not have a Object Person in my application, becasue the values that may come in excel sheet is arbitrary (i.e. it may not be the ...
I need a way of displaying 3 cells of data. For example Cell 1 Cell 2 Cell 3 20 140 Lee 12 110 Kerrie Whenever anyone's name is input in cell 3 I need a separate spreadsheet to display the name (cell 3) and the information in cells 1 & 2 (the information i...
Our workbooks are server-generated SpreadsheetML, which cannot include any VBA code. Creating native Excel files or Excel 2007 XML files is also not an option, unfortunately. So, I have an Excel Add-In (VBA, not XLL) that each of our users installs to add some extra UDFs, etc. that our workbooks need. This works great, but now I need t...
Hi, I got 2 different EXCEL FILE (.xls).And there is a Column named "KATIP" in excel1.xls , and there is a column named "SAVCI" in excel2.xls.I wanna get this 2 column from excel1.xls and excel2.xls and merge themn into a table named "Nobet" with 2 column "SAVCI" and "KATIP". and show them in Gridview Control in ASP.NET .. I got working ...
Hi all I need to be able to detect which version of Excel I have installed in my machine from some .NET code I'm developing. I'm currently using Application.Version for that, but it doesn't give me information about Service Packs. I would preferably to steer away from something like this: http://www.mvps.org/access/api/api0065.htm Ma...
I have set up a basic html table with a reader in each cell (don't ask) that exports to excel, I also have a datagrid that exports to excel. Both work without issue in regards to actually creating the spreadsheet, but I have a question regarding formatting. Inside each cell is a list of names, i.e.: Bob Smith Jim Bob John Miller ...
I have a combobox in a userform for excel. What is the easiest way to sort it alphabetically? The values for it are hardcoded in vba and new ones are just added to the bottom so they are not in any kind of order already. The userform is currently being used so that our users can import data from our database into excel. The combobox ...
Hi, I am having a bit of trouble with errors occurring in a loop in VBA. First, here is the code I am using dl = 20 For dnme = 1 To 3 Select Case dnme Case 1 drnme = kt + " 90" nme = "door90" drnme1 = nme Case 2 drnme = kt + " dec" nme = "door70" 'decorative glazed' Case 3 drnme = kt + " gl" nme = "door80" 'plain glazed' End Select On...
I'm using DsoFramer 1.3 in my project to hold Excel (2007) documents. But it have a big problem, that is: All the Excel documents opened by DsoFramer share only one Excel process. The result is when the second Excel document opened by the DsoFramer, the first document is uneditable. Even more, when I double click an Excel document in W...
What is the excel function of rounding up the last decimal point? 9.23 => 9.25 10.26 => 10.30 9.25 => 9.25 ...
I'm using POI HSSF API for my excel manipulations in Java. I've a date value "8/1/2009" in one of my excel cell and while I try to read this value using HSSF API, it detects the cell type as Numeric and returns the 'Double' value of my date. See the sample code below: cell = row.getCell(); // date in the cell '8/1/2009' switch (cell.get...
What is the layout of a DIF file, and, more importantly, what is the meaning of the different header and data fields in one? The Wikipedia article has enough information that I suspect this would be an easy-to-generate format that's richer than CSV. But I can't find a good enough description of this format to actually generate it. ...