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 January 2nd, 2007, 03:58 AM
Registered User
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data in combobox

Hai all,
  I need to add data in combobox at runtime.that is i need to add data by typing in combobox.can anybody help me to do this.

thanks
sathish
 
Old January 2nd, 2007, 06:35 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

If you use ActiveX ComboBox then use AddItem Method

ComboBox1.AddItem "Item1"
ComboBox1.AddItem "Item2"
...

If you use Forms Control ComboBox then
Worksheets(1).Shapes("Drop Down 1").ControlFormat.ListFillRange = "A1:A10"


-vemaju





Similar Threads
Thread Thread Starter Forum Replies Last Post
data filtering from combobox MAKO C# 4 June 1st, 2006 03:54 AM
Restricting the data in a ComboBox hemanth_p2p Visual Basic 2005 Basics 2 January 10th, 2006 02:23 AM
ComboBox with Data from More than 1 Table rocknrisk Access 7 August 19th, 2005 02:34 AM
ComboBox Data Binding bmains VB.NET 0 October 5th, 2004 02:35 PM
Data Bound ComboBox joblot VB How-To 0 May 5th, 2004 12:18 AM





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