473,806 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Searching multiple excel sheet using a vb.net app

I want to search 5 or 6 very big excel spreadsheets looking for specific
data held in them. The search would be using clients surnames and maybe
postcodes to eventually find the correct person. Once this is done I wish
to either see there full details or have a display of what filename they are
in and what row of the sheet...

This in theory should be a run of the mill thing but i cant think where to
start...

Scott
Nov 21 '05 #1
3 1983
When you say big, how big they are? How many rows in each?
I think there is a limit of 32K rows per excel file, but I might be wrong
though.

One solution might be trying to connect to excel, using it as a database,
and then use a select statement, with the name of the sheet, i.e. "SELECT *
FOM [sheet1$] WHERE ..."

Check this: http://www.connectionstrings.com/

Ilyan

"Scott" <sj*****@btinte rnet.com> wrote in message
news:ZJ******** *******@newsfe3-win.ntli.net...
I want to search 5 or 6 very big excel spreadsheets looking for specific
data held in them. The search would be using clients surnames and maybe
postcodes to eventually find the correct person. Once this is done I wish
to either see there full details or have a display of what filename they
are in and what row of the sheet...

This in theory should be a run of the mill thing but i cant think where to
start...

Scott

Nov 21 '05 #2
I think each excel sheet is no bigger than 10,000 rows...

So will I be able to insert the lastname "Smith" and get results from all 6
spreadsheets quickly???

Scott

"Ilyan Mishiyev" <ms************ *****@THISigmcc .com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
When you say big, how big they are? How many rows in each?
I think there is a limit of 32K rows per excel file, but I might be wrong
though.

One solution might be trying to connect to excel, using it as a database,
and then use a select statement, with the name of the sheet, i.e. "SELECT
* FOM [sheet1$] WHERE ..."

Check this: http://www.connectionstrings.com/

Ilyan

"Scott" <sj*****@btinte rnet.com> wrote in message
news:ZJ******** *******@newsfe3-win.ntli.net...
I want to search 5 or 6 very big excel spreadsheets looking for specific
data held in them. The search would be using clients surnames and maybe
postcodes to eventually find the correct person. Once this is done I wish
to either see there full details or have a display of what filename they
are in and what row of the sheet...

This in theory should be a run of the mill thing but i cant think where
to start...

Scott


Nov 21 '05 #3
I would load the contents of the sheets into a dataset(s) and search
that way because it would be faster than using the bulky excel search
methods to find it.

"Scott" <sj*****@btinte rnet.com> wrote in message
news:sj*****@bt internet.com:
I think each excel sheet is no bigger than 10,000 rows...

So will I be able to insert the lastname "Smith" and get results from all
6
spreadsheets quickly???

Scott

"Ilyan Mishiyev" <ms************ *****@THISigmcc .com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
When you say big, how big they are? How many rows in each?
I think there is a limit of 32K rows per excel file, but I might be
wrong
though.

One solution might be trying to connect to excel, using it as a
database,
and then use a select statement, with the name of the sheet, i.e.
"SELECT
* FOM [sheet1$] WHERE ..."

Check this: http://www.connectionstrings.com/

Ilyan

"Scott" <sj*****@btinte rnet.com> wrote in message
news:ZJ******** *******@newsfe3-win.ntli.net...
I want to search 5 or 6 very big excel spreadsheets looking for specific

data held in them. The search would be using clients surnames and maybe

postcodes to eventually find the correct person. Once this is done I
wish
to either see there full details or have a display of what filename they

are in and what row of the sheet...

This in theory should be a run of the mill thing but i cant think where

to start...

Scott



Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
35569
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet and extract information from specific worksheets and cells. I'm not really sure how to get started with this process. I ran the COM Makepy utility from my PythonWin (IDE from ActiveSTate),
14
5808
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the SQL DATABASE, probably by the click of a button. Is this possible? & what is the BEST APPROACH for doing this? & also if any links are there do tell those to me too coz I have no idea how to go about doing it.
2
2640
by: Patrick B. | last post by:
I have an existing excel spreadsheet that my customers MUST continue using. There are 5 different specially formatted cell groups (tables) on one sheet where the use can enter data. The data in each of these "tables" corresponds to a different table in a SQL database. What is the quickest way for me to capture the click event of a button on that sheet and move the data into my SQL database tables? I have tried VBA and also the sample...
2
11217
by: krissh | last post by:
I know How Excel sheet in php .But wat i want is how to create Multiple sheets in Excel . This is the code for creating one excel sheet <?php header('Content-type:application/ms-xls'); header("Content-Disposition: attachment; filename=Emp_Skillgap.xls"); header("Pragma: no-cache"); header("Expires: 0");
13
3016
by: chuckie_9497 | last post by:
hello all you gurus. I am struggling with releasing com objects. I have isolated the problem to the code below. Objects are released and the process ends until I use "int k = sheet.Count;" Then the process does not end. So I feel confident the problem occurrs here. It appears another reference is created that needs to be closed. Can anyone tell me how to do this? :) Thank you Excel.Workbook workbook =
3
9702
by: yovation | last post by:
Hi, I have a 3 table database. 1 parent 1 child 1 child of child I would like to get the data into excel as 1 sheet (similar to a grouped report).
4
7128
by: sadc1986 | last post by:
How does one introduce multiple worksheets in a excel using Xslt Transforms my code... Please suggest <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel"> <xsl:output method="html" encoding="UTF-8"/>
1
10926
by: DThreadgill | last post by:
I have a spreadsheet with about 35 tabs that I need to import into one table in Access. I found this link http://www.thescripts.com/forum/thread650662-import+multiple+tabs.html and changed some things within the code. First off - I've written a piece of code that changes the name of each sheet (Sheet1, Sheet2, etc), deletes the blank rows and formats a couple of the columns to text and date format. It then saves and quits the application...
4
7360
by: Harshe | last post by:
hello all, I am trying to code, but i am just stuck after importing one sheet. so here is the gist of what i need help with. In a workbook at the start of the year (january) i will have 4 sheets and these sheets will keep increasing to 12 when the month is december. so i want is, sheet 1 (named abc) should go into table 1 (named abc), sheet 2 (named def)should go into table 2 (named def), sheet 3 (named xyz) should go into table 3 (named...
0
9597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10618
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.