excel

Fill New Sheets With Data From Other Sheets

I have a master sheet that has rows of house address data, one column of which is a "State" column. I have 50 other sheets in the same document, corresponding to each of the 50 USA states. What I want to happen: When I enter an address in the master sheet, and enter a state (say "CA" or "California"), I want it to automatically populate ...

Excel VBA / SQL Union

Hi, I am trying to Join 2 separate columns from 2 different sheets to make a longer column from which i can then use a Vlookup from. Sheet1 A, B, C, D, E, F, G Sheet2 A, B, C, D, E, F, G I want to Join(Union) Columns B from sheet1 and C from sheet2 together and find the Distinct values of the new list. I have been working on this f...

Only allow users on my network domain to open an Excel workbook

Rather than distribute a password to employees, I would like to protect an excel workbook so that only users on the company domain can open the workbook. Is there a feasible way to do this? The workbook should be encrypted, but transparently decrypted for users who are logged into the company domain. That way, a file that strays from ...

Embedded Office Application - How to know whether the app is running or the object is embedded

I am adding an Excel Worksheet object inside Word. Excel has a COM addin attached to it. Any idea how one can know whether Excel is running independently or as an embedded object? The COM Addin attached to Excel loads when the embedded Excel object is activated (double-clicked) inside Word. I am looking for some kind of a property or a ...

Generate xml containing animation information from ms ppt 2003/07 file

I am planning to write an application which has UI from MS ppt.Here is where all the animation will be configured. My application will just read xmls containing animation configuration and run it on a target device(Cannot mention details w.r.t device right now ,apologies for that) Not necessary that i want xmls it self but if there is a...

How to automate a web query login to download data in Microsoft Excel 2007?

Hi, Have anyone can sharing with me the info on which is how to automate a web query login to download data in Ms.Excel 2007? Problem is existing that i need to manually login through a web query each time.... Thanks in advance for any help you can provide! ...

MS Query returns data inside itself but does not export it to Excel

Hi, I'm having a strange problem with Excel and MS Query: I'm using MS Query to run a T-SQL query against a Microsoft SQL Server 2000 and return the results to Excel. To do this, I open Excel, go to Data -> Import external data -> New database query, select my data source, paste the SQL script in MS Query and click File -> Return data ...

How can i start a MultiThread Heavy Excel data to add Sql Table?

i want to start Multi Thread while adding 20000 rows Excel Data to sql data.How can i do that? (this is windows Application) ...

How can solve "Cross-thread operation not valid"?

i try to start multi Thread but i can not it returns to me error: Cross-thread operation not valid: 'listBox1' thread was created to control outside access from another thread was. MyCodes: public DataTable dTable; public DataTable dtRowsCount; Thread t1; ThreadStart ts1; void ExcelToSql() { ...

Import excel files with image in php/mysql

Hi all! I want to make an import script which allows users to upload their excel file (extension not important) to my php application. The application should reconize a list of items (so far so good). The difficulty in this case is that the excel files contain images...I've read information about phpexcel library but it does not say anyt...

How do I populate a table from an Excel Spreadsheet in Rails?

I have a simple 4-column Excel spreadsheet that matches universities to their ID codes for lookup purposes. The file is pretty big (300k). I need to come up with a way to turn this data into a populated table in my Rails app. The catch is that this is a document that is updated now and then, so it can't just be a one-time solution. I...

Formatting a CSV File that contains HTML for Import to Excel

I would like to export a CSV file from my application for importing into Excel (or any other spreadsheet that supports CSV files). Anyhow, one of the cells in my table have rich content (i.e. HTML) which can, of course, contain commas as well as other HTML characters and formatting. I realize that Excel "can" handle HTML formatted text...

Replacing SUMIFS in Excel 2003

So, I need to find an Excel 2003 substitute for =SUMIFS, which is only 2007+ (apparently). The formula is used to generate this summary data table, from a list of revenue, where each revenue line has the field type (static, email or outreach) and the field fund (ABC, QRS and XYZ). type fund total count average static ABC $1...

How to Trigger a Error from a VBA function

hi, I need to trigger(return) an error event from a VBA function, then the calling function of this function can trigger On Error Go to call. E.g function Test() On Error Go to myError: TestErr() Exit Function myerror: Test = "Error Triggered" End Function Function TestErr() ?? 'How to Trigger error here End Functio...

compare two excel sheets

how do you compare two excel sheet and determine which column is missing? (would like to compare a list of countries from sheet A with sheet B, then mark which country is missing) Note: they are in random order. ...

Loading Excel without Add Ins

All, I wrote a spreadsheet application which users load it by doubleclicking an icon I provide them. The problem is users have a lot of addins which slow Excel down. How can someone load Excel using command line switches to disable all add-ins ? The question applies to both Excel 2003 and Excel 2007. Many Thanks, MK ...

need to write a function to add values based on query in EXCEL

S.no Area 1 55 2 65 3 51 4 70 5 55 6 65 7 75 8 60 9 45 10 50 11 70 12 52 13 65 14 40 15 60 16 55 17 50 18 65 19 85 20 81 By entering range of Sno. e.g 3 to 5 I MUST GET THE ADDITION OF Area for specified range of Sno. Note : range of sno. may vary like 3 to 5 , 10 to 18 etc. ...

How to ensure sequence of functions calling in a Excel sheet

Hi, Is there anyway to control the sequence of function calls in a excel sheet when it is re-opened ? Excel automatically re-evaluate the functions when it restarts, where I need to ensure one of my function set is called before another set of function calls. Thank You ...

Marshal.ReleaseComObject(...) issues

I use said invocation to release some Excel objects after I'm done. Is it necessary to set references to null afterwards (like in the following code) ? var dateCol = sheet1.get_Range("C4", "C" + rowOffset); dateCol.NumberFormat = "Text"; Marshal.ReleaseComObject(dateCol); dateCol = null; ...

PHP Excel - Correct format for strings / numbers beginning with zero?

Hi, I'm trying to use PHP to create a file containing a list of phone numbers. It's working OK however if the phone number begins with zero, the digit is dropped from the excel file. Does anyone know how to set the formatting correctly so that it remains in place? Any advice appreciated. Thanks. ...