Home |
Search |
Today's Posts |
#8
Posted to microsoft.public.excel.programming
|
|||
|
|||
drop down list for IF equation
ok. I asked a colleague of mine who recently started and is a programmer.
While his vba is rusty, he brought up a point that you've raised, and other posts have stated the same-- use a worksheet to source the names, and call them from that location. As I've been wanting a list of data to source a few things from, I'll be doing that, and make a combobox off that list. Thanks again for your help. Have a great week. "dan dungan" wrote: Hi Steve, I'm still not clear about your needs, but maybe this from the archives in 2004 will give you some ideas: 3. Vic Eldridge Newsgroups: microsoft.public.excel.programming From: (Vic Eldridge) Date: 16 May 2004 21:14:50 -0700 Local: Sun, May 16 2004 8:14 pm Hi Abhinav, Try running the InsertCombos macro I've made for you. As it creates the comboboxes, it uses the contents of cells A1:A5 (on Sheet2) to define the list for the comboboxes. If you needed a different list for each Combobox, post back with more details. Make sure the ShowWebPage macro is in a standard module, it will be run whenever you make a selection from one of the ComboBoxes. Regards, Vic Eldridge Sub InsertCombos() Dim cel As Range For Each cel In Range("A1", Range("A65536").End(xlUp)) If cel.Value < "" Then With ActiveSheet.DropDowns.Add( _ Left:=cel.Offset(0, 1).Left, _ Top:=cel.Top, _ Height:=cel.Height, _ Width:=80) .ListFillRange = "Sheet2!$A$1:$A$5" .OnAction = "ShowWebPage" End With End If Next cel End Sub Sub ShowWebPage() With ActiveSheet.DropDowns(Application.Caller) ActiveWorkbook.FollowHyperlink Address:= _ "http://www.example.com/" & .List(.ListIndex) End With End Sub . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
drop down list based on other drop down list pick | Excel Discussion (Misc queries) | |||
Drop down list dependant on previous drop down list | Excel Discussion (Misc queries) | |||
Drop down lists that auto create and then filter the next drop down list | Excel Worksheet Functions | |||
Drop Down List choice selecting another drop down list | Excel Worksheet Functions | |||
multiple select from the drop down list in excel. list in one sheet and drop down in | Excel Discussion (Misc queries) |