Home |
Search |
Today's Posts |
#2
![]() |
|||
|
|||
![]()
1) Select the range, then InsertNameDefine Name ..., and use that name in
the list 2) Uncheck the in-cell dropdown box -- HTH RP (remove nothere from the email address if mailing direct) "mango" wrote in message ... dear all, 1)how to refer a range in other sheet in the same workbook as an array? instead of lookuplist = Array("apple", "banana") how can i define a range to refer as dropdown value? 2)another thing is how to remove the dropdown icon when added to cell? Pls help. Thanks Private Sub Worksheet_BeforeDoubleClick(ByVal target As Range, Cancel As Boolean) If Not Intersect(target, Columns("E")) Is Nothing Then Call AddDropDown(target) Cancel = True End If End Sub Sub AddDropDown(target As Range) Dim ddbox As DropDown Dim i As Integer Dim lookuplist As Variant lookuplist = Array("apple", "banana") With target Set ddbox = Sheet3.DropDowns.Add(.Left, .Top, .Width, .Height) End With With ddbox For i = LBound(lookuplist) To UBound(lookuplist) .AddItem lookuplist(i) Next i End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Transfer data from sheet to sheet | Excel Discussion (Misc queries) | |||
Linking sheets to a summary sheet in workbook | Excel Discussion (Misc queries) | |||
linking multiple sheets to a summary sheet | Excel Discussion (Misc queries) | |||
Function to automatically insert a new sheet as a result of data entry? | Excel Worksheet Functions | |||
Naming & renaming a sheet tab | Excel Worksheet Functions |