Wrox Programmer Forums
|
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 November 16th, 2006, 08:24 AM
Registered User
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to anup.bihani
Default ListBox in Excel Sheet

Query:
I have one List Box Populated with some meaningful data (Code_Description) from database.I want to update the listbox in the excel sheet(that listbox is associated with the cell),every time the user enters something in the ActiveCell-Cum-listbox.
ex - Suppose the user presses something like 444 in the cell,the listbox will get updated and contain the entries starting with Code = 444
Again If the user erases the 444 from the ActiveCell, the listbox will show all the data (that was fetched earlier from database but kept in the hidden sheet .. listbox is getting populated from that hidden sheet).
Please provide the code for the same.
 
Old November 16th, 2006, 10:29 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

Use the Worksheet_Change event to populate the listbox

Cheers
Shasur

http://www.vbadud.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
using excel sheet in my application sultan ADO.NET 0 May 2nd, 2008 02:11 AM
Excel Sheet Security kotaiah Excel VBA 0 September 12th, 2006 10:46 AM
write multi-sheet Excel w/o Excel.Application manmoth Classic ASP Components 2 November 22nd, 2005 10:56 AM
Fill listbox from excel sheet Alcapone C# 2 December 22nd, 2004 04:31 PM
excel sheet used in javascript ayppa Excel VBA 1 August 19th, 2004 01:14 PM





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