Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have found an earlier reference on how to temporarily widen a validation
box using target.columns.columnwidth. Is there a way I can do this ONLY when a specific validation box is being used, i.e. I do not want to temporarily widen the column every time a cell is active, only one or two cells. Thank you |
#2
![]() |
|||
|
|||
![]()
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With Target If .Count 1 Then Exit Sub If .Address = "$B$5" Or .Address = "$H$8" Then .Columns.ColumnWidth = 20 Else Columns(2).ColumnWidth = 5 Columns(8).ColumnWidth = 5 End If End With End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH RP (remove nothere from the email address if mailing direct) "Alex Mackenzie" wrote in message ... I have found an earlier reference on how to temporarily widen a validation box using target.columns.columnwidth. Is there a way I can do this ONLY when a specific validation box is being used, i.e. I do not want to temporarily widen the column every time a cell is active, only one or two cells. Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Case Sensitivity problem with data validation | Excel Worksheet Functions | |||
TWO QUESTIONS: Validation & Spacing...PLEASE HELP | Excel Discussion (Misc queries) | |||
data validation lists | Excel Discussion (Misc queries) | |||
named range, data validation: list non-selected items, and new added items | Excel Discussion (Misc queries) | |||
Data Validation Window? | Excel Discussion (Misc queries) |