![]() |
#1
|
|||
|
|||
![]()
Hello,
Is there a way to create a drop-down list that does the following: When the user opens the drop-down, you see (for example) AK-Alaska, AL-Alabama, AR-Arkansas, etc. But when the cell is populated, it only returns the two-character state. Your health is greatly appreciated. TIA, Karen |
#2
|
||||
|
||||
![]()
I am pretty sure that for this to work, you will need to have a combo box linked to some VBA that would include the workbook function =Left
__________________
Alan עַם יִשְׂרָאֵל חַ Using O365 v2505 |
#3
|
|||
|
|||
![]()
Thank you so much for your suggestion.
Best, Karen |
#4
|
|||
|
|||
![]()
Worksheet event is used.
Let the validation range is C2:C6. Select the range C2:C6. select Data Validation in ribbon. In the Data Validation dialogue box select Error Alert. In Style dropdown select Information. Ok. Event code: Code:
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("C2:C6")) Is Nothing Then Application.EnableEvents = False Target = Left(Target, 2) Application.EnableEvents = True End If End Sub Right click on Sheet tab --> view code Visual Basic (VB) window opens. Paste the code Close the VB window. Save the file as .xlsm |
#5
|
||||
|
||||
![]()
I would like to be able to make a selection in the drop down, and have it populate the selections abbreviation in the same cell...
https://www.msofficeforums.com/attac...1&d=1730822992 Is this possible? |
#6
|
||||
|
||||
![]()
Please start a new thread. There was nothing attached either
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
mrstrawhand | Word VBA | 3 | 03-30-2020 06:08 AM |
Activate (show) a Drop-down form field when another drop-down form field is selected from | Jentis | Word VBA | 1 | 04-19-2018 09:42 PM |
Drop down box list based on response to another drop down box | Phideaux | Excel | 16 | 04-13-2018 03:07 AM |
![]() |
cjoyce73 | Excel | 5 | 07-17-2017 07:40 AM |
Help, auto select drop down by another drop down value? | skrallemand | Word VBA | 3 | 09-11-2013 11:55 AM |