excel

cell info when the cell is clicked...

Is it possible to show the cell info when any cell on a worksheet is clicked? For example, if cell A1 is clicked it will show A1, and so on... If yes, can you show example? I need this because I have a c# program which should know which cell was clicked. ...

putting excel sheet in a c# printpreview dialog

hi, i am working with c# and excel-2007: can anyone show me how to put the excel sheet in a c# print preview dialog, plus to fit the excel sheet in a printable area of one paper. thanks in advance! is it possible to add extra buttons on the printpreview dialog like for example i want to put text editor there so that user can press it an...

Silverlight Export Datagrid to Excel (without roundtrip)

I've got a silverlight 2 app with a Datagrid and a button for exporting it to Excel by making a trip back to the server. I can create an HTML string representing the datagrid. I'd like to attach this string to an html element, setting MIME type=application/vnd.ms-excel and have a prompt show up asking if I'd like to open or save the xl...

Setting date cell format in excel xml

Hi, I need to export a DataSet to excel file. I have date columns in the DataSet. I need to make sure that the date format of the cells has locale: English (United Kingdom) with the date format of dd/mm/yyyy. Currently I am setting the format dd/mm/yyyy using <Style ss:ID="DateLiteral"> <NumberFormat ss:Format="dd/mm/yyyy;@"/> </Style...

Hiding Page Breaks in Excel

Following on from my previous questions: I have implemented a series of checkboxes with which users can hide/unhide ranges of data. This is great - it works. The problem is when the users go to print - the hidden data is hidden but the pages are still there but blank. If the page breaks are left to their own devices then everything is...

How to get/set unique id for cell in Excel via VBA

I want to have/define a unique id for each data row in my Excel data sheet - such that I can use it when passing the data onwards and it stays the same when rows are added/deleted above it. My thoughts are to use the ID attribute of Range (msdn link) So, I have a user defined function (UDF) which I place in each row that gets/sets the ...

'there are too many records to complete this operation' Excel Pivot Table Refresh

Does anyone have a resource that gives possible reasons for this error message in Excel. I've googled around and looks like lots of people encounter the message but no one replies with concrete suggestions for resolving. The actual source of data is an Excel list and is only 1000 rows long and a few users use this pivot table and refre...

Changing Excel 2000 pivot chart unit

I've got a pivot chart which spans several years on the X axis, with data for each day. The problem is that there's a label on the X axis for each day, so they are too cluttered to be readable. I'd like to show just the months as labels instead of the days, and still see data points per day, but here's what I found so far: Doing this i...

Replicating Team System's "Open Selection in Microsoft Excel" functionality

In Visual Studio, VSTS has the functionality to select a set of work items and click a button to open them in Excel, where you can modify them. Then, using the 'Team' ribbon, you can publish changes back to TFS. We would like to replicate this functionality in a totally different business context. Does anyone know of any sample code or ...

Excel - extracting data based on another list

Hello all, I have an Excel worksheet with two columns (name/ID) and then another list that is a subset of the names only from the larger aforementioned list. I want to go through the subset list and then pull the data from the larger list (name/ID) and put it somewhere else...essentially only grabbing the data from the larger list if th...

Exporting Data from CRM 4.0 to Excel

What is the best way for a client to export data from CRM 4.0 to Excel? Right now the limit on the number of rows that can be exported is set at 10000? Is there a supported way to increase the limit or is there another way? The client is in a locked down environment so a solution through CRM 4.0 would be ideal. (e.g. export all of th...

how to switch off R1C1 reference style in Excel 2007

hi, i'm using excel-2007. i wanted to see smth with R1C1, then i checked the "R1C1 Reference Style" (office button->Excel Options->Formulas->R1C1 Reference Style)... Now i wanted to move again back to xlA1 style, i unchecked the R1C1 Reference Style, but my macros are still written in the R1C1 style... how can i switch to xlA1 reference...

Advantage to parsing Excel Spreadsheet data vs. CSV?

I have tabulated data in an Excel spreadsheet (file size will likely never be larger than 1 mb). I want to use PHP to parse the data and insert in to a MySQL database. Is there any advantage to keeping the file as an .xls/.xlsx and parsing it using a PHP Excel Parsing Library? If so, what are some good libraries to use? Obviuously,...

c#,excel: numberformat works but values are still different

hi i am using c# to do things in excel-2007, i have the below code object mis = Type.Missing; Excel.Workbook wb = (Excel.Workbook)Globals.ThisAddIn.GetActiveWorkbook(); Excel.Worksheet ws = (Excel.Worksheet)wb.Worksheets.Add(mis, mis, mis, mis); Excel.Range range = (Excel.Range)ws.get_Range("A1", "HM232"); range.Formula =...

How do I display a counter(ie, no. of times downloaded) in an MS Excel 07 spreadsheet when the spreadsheet(.xls) is downloaded off my webpage?

I know it is easy to display a counter on a webpage but I need to implement the same, ie, I need to write data to a cell in the Excel 2007 spreadsheet every time a person downloads it from my webpage. To be more precise, when the user downloads the excel file to his hard drive and when it is opened, I want the spreadsheet to display the ...

SQL Union in MS Excel 2007

I have a number of CSV files of data that I want to Union together into a single table in MS Excel. All the CSV files have the same names and number of columns. In a relational database like Access or SQL I could use a Union Query, but this has to be in Excel. How can I quickly merge all of these files into one in Excel? ...

VBA for Inserting a chart into a ppt slide

Below is a procedure that I use to pull charts into a ppt from excel spreadsheets. However one thing I cannot figure out is how to insert the picture into the "object" instead of just pasting it onto th screen. (ie if I did a ppLayoutFourObjects, and sent fours charts to this slide, before adding another, I need to know how to paste the ...

How to prevent the update of a cell in Excel?

I have a pretty large Range (10,000 rows, 10 cols) that I fill line by line on an everyday basis. I also have a smaller Range (366 rows, 5 cols), in which, for every cell, I run a macro. That macro does pretty much what DSUM or SUMIF do, but with multiple criteria. The problem is that after having this fancy stuff implemented, I can't fi...

Excel formulas giving #VALUE! error when ported to mac

I want to be able to sum up the number of cells in a range that have a non-null value in them. On a PC running XP and excel I entered =SUM(IF(G$19:G$1034="",0,1)) and it spit out the correct answer. Now the same spreadsheet on a Mac running excel 2004 for Mac gives that a #VALUE! error. Any thoughts on why? ...

recommend a tutorial to read Excel file in C#

Hello everyone, I have experience in C# but limited experience in using C# to read content from Excel. My task is very simple, just read each column of each row of an Excel document and retrieve their values. Any good tutorials or samples for a beginner? I am using VSTS 2008 + C# + .Net 3.5. I am working with Excel 2007. thanks in ad...