Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Drop Down List in Inputbox


thank u

any idea how to creat combobox on a userform

yours


--
helmekk

-----------------------------------------------------------------------
helmekki's Profile: http://www.excelforum.com/member.php...nfo&userid=693
View this thread: http://www.excelforum.com/showthread.php?threadid=26628

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Drop Down List in Inputbox

In the VBE, in the menu do Insert = Userform

the control toolbox will appear

click on the combobox. go to the userform and rubberband a rectangle where
you want the combobox.

Use the Userform_Initialize event to populate the combobox if the values in
the list will be dynamic, dependent on some other condition.

Private Sub Userform_Initialize()
Select Case Worksheets("sheet1").range("B9").Value
Case 100
combobox1.AddItem 3
combobox1.AddItem 6
Case 75
combobox1.Additem 4
combobox1.AddItem 2
end Select
end sub

or use whatever is appropriate to populate the combobox.

to enter the result in cell, use the controlSource property Sheet3!A5
for example.

If the userform is named Userform1 then you show it with

Userform1.show

as an example.

--
regards,
Tom Ogilvy


"helmekki" wrote in message
...

thank u

any idea how to creat combobox on a userform

yours
h


--
helmekki


------------------------------------------------------------------------
helmekki's Profile:

http://www.excelforum.com/member.php...fo&userid=6939
View this thread: http://www.excelforum.com/showthread...hreadid=266280



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop Down List choice selecting another drop down list CVD0722 Excel Worksheet Functions 3 October 31st 06 01:02 PM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM
Drop Down List in Inputbox helmekki[_23_] Excel Programming 1 October 5th 04 12:42 AM
Macro InputBox with Drop-Down List? Bob Phillips[_5_] Excel Programming 0 September 4th 03 07:50 PM
Macro InputBox with Drop-Down List? Bob Phillips[_5_] Excel Programming 0 September 4th 03 07:49 PM


All times are GMT +1. The time now is 07:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"