Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Code expantion , with code!
I would like to add some additional lines of code into the below. If button
is clicked and the ListIndex is empyt I wouold like a Msg box to appear prompting for the ListIndex to be populated. Also to enable the formated conditions of items in the ListIndex to appear in the new location. Any help appreciated Option Explicit Sub control_on_worksheet() Dim myPick As Long Dim myDD As DropDown Set myDD = ActiveSheet.DropDowns(Application.Caller) With myDD myPick = .ListIndex 'activecell.value = .list(mypick) 'or to avoid an extra variable ActiveCell.Value = .List(.ListIndex) .Value = 0 End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA: For Count, when count changes from cell to cell | Excel Discussion (Misc queries) | |||
Cell value not recognized by code. | Excel Discussion (Misc queries) | |||
Text formatting | Excel Worksheet Functions | |||
VLOOKUP for Zip Code Ranges | Excel Worksheet Functions | |||
Macro for changing text to Proper Case | Excel Worksheet Functions |