Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I'm trying figure out how to copy text from a "list" (i.e., 4 or 5 text
entries in one column, but each in individual cells) to another cell in the same spreadsheet by clicking on the original cell just once. The text always needs to copy to the same final cell, but can change. For example, cells A1:A3 contain "A1:small, A2:medium and A3:large". Clicking on one of these pastes it into another cell, such as D1. Each time a different cell is clicked in A1:A3, the text in D1 changes accordingly. Any help is greatly appreciated. |
#2
![]() |
|||
|
|||
![]()
Try pasting this procedure in the appropriate worksheet object code
sheet Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Row = 1 And Target.Column = 1 Then Range("d1") = Range("a1") ElseIf Target.Row = 4 And Target.Column = 1 Then Range("d1") = Range("a2") ElseIf Target.Row = 7 And Target.Column = 1 Then Range("d1") = Range("a3") End If End Sub Good luck! |
#3
![]() |
|||
|
|||
![]()
Sorry, correct the target.row = 4 to 2, amd target.row = 7 to 3. Mea
culpa, bigtime! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text wider than one cell is not displayed in the next empty cell | Excel Discussion (Misc queries) | |||
How to copy a formula as text to another cell? | Excel Discussion (Misc queries) | |||
sending data from one cell to another (not using copy & paste) | Excel Worksheet Functions | |||
copy a cell value not its function | Excel Discussion (Misc queries) | |||
copy paste cell character limit | Excel Discussion (Misc queries) |