Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2005, 07:21 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default Data Search Form in Excel

I know this isn't the ideal solution, but I am trying to find a way to provide an end user with a form that will search a range of cells and return a list of matching records for various criteria. The web-server that this will run on does not support Access or any advanced languages like Java, or I would do it in one of those. Can anyone point me in the right direction to create such a form and have it search and display all the results at once?

Thanks

Mike

Mike
EchoVue.com
__________________
Mike
EchoVue.com
 
Old March 24th, 2005, 12:03 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

One thing you could do would be to add a userform with a listbox on it, and populate the listbox with the data to display.

In any event, you are likely going to have to the heavy lifting yourself, establishing the formatting (so to speak) through code contained in an iterative loop.

You could create a label on the form, and change its .caption. (Better put scroll bars on the form if it is likely to get tall...)
 
Old March 24th, 2005, 12:06 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

I'll give it a whirl.

Thanks!

Mike

Mike
EchoVue.com
 
Old March 24th, 2005, 02:13 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quick (kind of) question... The user form makes sence, however I want to be able to filter the data from another sheet. The data is basically a list of medical doctors with their specialities and addresses. I want the user to enter the City and/or speciality and then populate a list of all matches with the same city and/or speciality. Does Excel have anything like a SQL query that I could build based on the button click event and then pull the information from a second sheet in an array or recordset or something?

Thanks

Mike

Mike
EchoVue.com
 
Old March 25th, 2005, 11:29 AM
Registered User
 
Join Date: Mar 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A simple lookup table would probably suffice.on the one shhet you put in the area/speciality and return the results on the current sheet then use asp to generate your html.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy data from Excel to open HTML form Bartje Excel VBA 1 September 29th, 2006 04:02 AM
Excel search dupledge Other Programming Languages 0 July 7th, 2006 08:02 PM
Search string in Excel Echo10 Excel VBA 1 June 1st, 2006 11:11 PM
Search Form ksa266 Access VBA 2 December 29th, 2003 06:37 AM
merging data from web form to excel spreadsheet fmh002 Classic ASP Basics 1 June 30th, 2003 04:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.