excel

Mediums to try out algorithms?

By definition algorithms are independent from the medium they run on. E.g. I use Excel tables to play with data structures and to do some move/shuffling/marking experiments before implementing an algorithm in a programming language. What tools and techniques do you use to design and simulate the function of an algorithm? How do you use...

Excel Conditional Formatting Self Reference

I'm trying to do some conditional formatting in Excel 2003, what I want to do is have a cell go red if the next cell is "Yes" and go bold if it, itself, contains "Yes". So if both cells are "Yes" the current cell will be red and bold. I want to do this for a group of cells so I haven't used a direct reference to the cell, but I have come...

grouping the rows in excel

I have designed one web page in asp.net. In that i have used the css file and excel generation button. While i am cliking the button for populating the data from database to excel. It is showing the problem in uploading the css file like that .What will i do the for removing the that error. For opening the excel sheet I have used the fo...

How do I add a form in an Excel sheet?

How can I add an input form in an Excel sheet. I want to insert values into an Excel cell using the form. ...

SQL-WHERE TYPE Formulas in Excel

Let say I have a sheet in with columns Customer and CreatedDate with lots of row with data. Anyone who knows how to setup (through VBA or Formula) a second sheet that displays rows from the first sheet based on certain where statements, i.e. all rows with customers "created this month." (similar to a select ... where query against a SQL ...

Excel - calculating durations of time data spread across multiple rows

I have a spreadsheet with a dataset of a number of transactions, each of which is composed of substeps, each of which has the time that it occurred. There can be a variable number and order of steps. I'd like to find the duration of each transaction. If I can do this in Excel then great, as it's already in that format. If there isn't...

Excel Range describes a group of adjacent cells. When several groups of non-contiguous cells are selected, how do you get them all from Worksheet.Selected (range)?

My app needs to build a buffer from all the selected cells on a worksheet. I have it working correctly when the selected cells are all one contiguous group, but if the user selects a group of cells, then holds down the control key and selects other cells that are not contiguous to the first set of cells, the Worksheet's Selected range o...

File Read/Write Locks

I have an application where I open a log file for writing. At some point in time (while the application is running), I opened the file with Excel 2003, which said the file should be opened as read-only. That's OK with me. But then my application threw this exception: System.IO.IOException: The process cannot access the file because ...

how to generate Excel through Javascript

Is there any way to generate Excel/CSV through Javascript? (It should be browser compaatible too) ...

ASP.NET: System.UnauthorizedAccessException - Access to Path Denied

I have an ASP.NET web application which does the following: Reads an Excel file. The excel file will have an image URL located in it that points to somewhere on the internet. The program reads each image URL and store it into a temporary folder in the web server. The application then resizes (changes the width and height) of the image....

ole excel object manipulation causes run-time error '91'

I am maintaining an application that was written in VB6 and makes use of the several OLE controls with Excel.Sheet.8 class objects. Several users are getting the "Run-time error '91': Object variable or With block variable not set" error when they reach a point in code that attempts to manipulate the excel objects. Below are examples of ...

Excel automatically merge cells

I have an Excel table with several items 1, 2, 3..., each of which has subitems 1.1, 1.2, etc. I'm using the list of subitems as my key column and populating the main items using vlookups, but only showing each main item once. /| A | B | C | -+---------+----------+----------+ 1| Item1 | 1.Note | Item1.1 | 2| ...

creating a sql table from a xls (Excel) file

I'm trying to convert an Excel document into a table in SQL 2005. I found the link below and am wondering if it looks like a solution. If so, what would the @excel_full_file_name syntax would be and where would the path be relative to.. http://www.siccolo.com/Articles/SQLScripts/how-to-create-sql-to-convert-Excel_to_table.html ...

Is there a way to programmatically concatenate excel files?

The scenario: we have a web system that automatically generates office 2003 excel files "on the fly" (using the 2003 XML file format, not the binary format.) These files do get kept on the web server for various things. Now, we're in a situation where the client would really like us to take the xls files generated by this process and g...

Building undo into an Excel VBA macro

Excel macros don't seem to allow the use of "undo" after running them. Is there any way to bake undo functionality into a VBA macro in Excel? ...

Does anyone know the .net odbc driver connection string for excel 2003's xml spreadsheets?

I know this has a certain "send me teh codes" quality, but the internet has really been letting me down on this one. I have an excel file in excel 2003's xml format that I want to attach an odbc connection to. And I can't seem to find the right connection string. connectionstrings.com has let me down, and other questions here on SO (s...

import text file containing line breaks into excel

I have a plain text file looking like this: "some text containing line breaks" I'm trying to talk excel 2004 (Mac, v.11.5) into opening this file correctly. I'd expect to see only one cell (A1) containing all of the above (without the quotes)... But alas, I can't make it happen, because Excel seems to insist on using the CR's as row d...

How to call a javascript file (.js) via Excel VBA?

How to call a javascript file (.js) via Excel VBA? ...

Excel VBA or VSTO - How do you loop over Fields on a PivotTable?

Here is some sample VBA code: Sub Macro1() Dim pt As PivotTable Set pt = ActiveSheet.PivotTables("SomePivotTable") 'Set colOfFields = pt.PivotFields End Sub The third line is incomplete/broken. What is the correct way to get access to collection of all the fields in a PivotTable? I need to be able to loop over them. Act...

Write a formula in an Excel Cell using VBA

Hello, I'm trying to use VBA to write a formula into a cell in Excel. My problem is that when I use a semicolon (;) in my formula I get an error 1004. My macro is the following : Sub Jours_ouvres() Dim Feuille_Document As String Feuille_Document = "DOCUMENT" Application.Worksheets(Feuille_Document).Range("F2").Formula ...