Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have produced some event code which altomatically simulates clicking the
drop arrow box and zooms the display for ease of reading whenever a cell referring to a validation list is selected. I want the zoom to return to its previous lower setting once a selection has been made from the dropdown list, but at the moment I have to select another cell in order for this to happen (see code below). Is it possible to trap the action of selecting an item from the drop down list, so I can reset the zoom without having to set another cell first? Here's the code: Private Sub Worksheet_SelectionChange(ByVal Target As Range) ActiveWindow.Zoom = 70 If Target.Cells.Count = 1 Then 'Check that the selected cell is a single cell If Not Intersect(Target, Range("ColPhase")) Is Nothing Then ActiveWindow.Zoom = 150 Application.SendKeys ("%{DOWN}") End If End If End Sub Regards & thanks in advance! Pete |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validation Dropdown list starts at b ottom of list | Excel Discussion (Misc queries) | |||
How do you lock a cell after making a selection from a dropdown b | Excel Worksheet Functions | |||
selection from dropdown list activates hyperlink | Excel Discussion (Misc queries) | |||
How to copy or move a row on a particular dropdown list selection | Excel Discussion (Misc queries) | |||
Dropdown list key selection | Excel Discussion (Misc queries) |