Value from pull down list added to end of adjacent column

dtwyford

New Member
Joined
Dec 24, 2015
Messages
14
Good day.
I have a need to use a pull-down and then have the selected value moved from the pull-down cell to the next blank cell in an adjacent column. Then go back to the original pull-down list, select again and have the selected value placed in the next blank cell in the adjacent column.

AB
1pull-down linked
to data validation list
21st selection
32nd selection
43rd selection

<tbody>
</tbody>

Thank you in advance
****** id="cke_pastebin" style="position: absolute; top: 108.5px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
pull-down list linked
to data validation list

<tbody>
</tbody>
</body>
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Your wanting the script to choose the value from The Data Validation list?
Or do you mean you will choose the value from the Data Validation list and the script will copy the value to the last used row+1 in column B.
And do you want the original value you chose cleared from column A?
 
Upvote 0
Assuming you and not the script will be choosing the data From the Data Validation list in column A
Try this:

This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on the sheet tab
Select View Code from the pop-up context menu
Paste the code in the VBA edit window

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified 5/9/18 12:15 AM EDT
If Not Intersect(Target, Range("A:A")) Is Nothing Then
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
Dim Lastrow As Long
Lastrow = Cells(Rows.Count, "B").End(xlUp).Row + 1
Target.Copy Cells(Lastrow, "B")
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,721
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top