Data Validation - Temporarily Make dropdown list wider

D

Dave Peterson

Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub

'reset everything
Me.Range("E:AB").EntireColumn.ColumnWidth = 5

If Intersect(Target, Me.Range("E:AB")) Is Nothing Then
'do nothing more
Else
'do the single column
Target.EntireColumn.ColumnWidth = 20
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top