|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Need help searching and extracting data from excel
Howdy All,
I have an excel spreadsheet with multiple sheets and I am trying to search the spreadsheet by a string and display the contents of the entire row that contains the matching string. I also need to update the spreadsheet also. I would like to do this via a web interface. Here is what I have thus far. The data is formatted like so 4566 Q5 pcbox1 pcbox1 pcbox2 <HTML> <HEAD> <TITLE>Satellite Command Database Tool</TITLE> <SCRIPT LANGUAGE="VBScript"> <!-- Instruct non-IE browsers to skip over VBScript modules. Option Explicit Sub cmdSubmit_OnClick ' Check to see if the user entered anything. If (Len(document.cmdsearch.cmd1.value) = 0) Then MsgBox "You must enter a command number before submitting." Exit Sub End If document.cmdsearch.submit End Sub --> </SCRIPT> </HEAD> <BODY> <H2>Command Database Lookup Utility</H2> <FORM NAME="cmdsearch"> <TABLE> <TR> <TD>Enter Command Number</TD> <TD><INPUT TYPE="Text" NAME="cmd1" SIZE="10"> <TR> <TD><INPUT TYPE="Button" NAME="cmdSubmit" VALUE="Submit" ></TD> <TD></TD> </TR> </TABLE> </FORM> </BODY> </HTML> Last edited by wbrown98 : April 23rd, 2008 at 02:08 PM. Reason: detailing data formatting |
|
#2
|
||||
|
||||
|
client side vbscript in HTML to search ...
Quote:
... and update ... Excel ... on ... the ... server ... side?
__________________
medialint.com "Energy has the opportunity to change the climate if it's done right." - Sen. John Ensign, R-Nev. (quoted out of context) |
|
#3
|
|||
|
|||
|
Quote:
Yes, the spreadsheet is on the server side. I would like to be able to update it from any pc on our intranet. |
|
#4
|
||||
|
||||
|
Why Excel? Can't you use Access for this?
|
|
#5
|
||||
|
||||
|
In any event I think you'll need a plan B. Even assuming all your users have direct file server access to the spreadsheet the probability of this breaking on the first day is about 100%. As far as getting it to work client side through a normal web server (regardless that it's intra or Inter) it's not going to work that way.
|
|
#6
|
|||
|
|||
|
Yes, it can be put together with not much work. My objection would be the number of users making queries to the .xls file. A modern database is designed to be available to a lot of users making almost-simultaneous queries against it. In comparable ways Excel isn't there yet.
Is there a reason why the spreadsheet per se is time-sensitive, or calculation intensive, enough that it can't otherwise be scheduled at regular intervals to automatically sync up with a database? Last edited by Frank20 : April 23rd, 2008 at 05:52 PM. |
|
#7
|
||||
|
||||
|
Quote:
Accessing a server side .xls with client side VB script in a browser ... !? |
|
#8
|
|||
|
|||
|
Quote:
Yes. But it's done through ASP. Perl also has a heavyweight VBA object-model capacity. Last edited by Frank20 : April 23rd, 2008 at 06:04 PM. |
|
#9
|
||||
|
||||
|
This is PITA. Think of another approach that doesn't involve excel on it.
|
|
#10
|
||||
|
||||
|
Quote:
In other words ... server side ;-) Quote:
I tend to agree ... even if you get server side code to maintain a spreadsheet it's going to be inefficient. Excel is not a database and shouldn't be treated as such (row 65,537 anyone ...?) it would be much more practical to maintain the data in a real database and export data to excel on demand or scheduled ... Last edited by medialint : April 24th, 2008 at 03:25 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Need help searching and extracting data from excel |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|