ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   auto copy old data to new cell (https://www.excelbanter.com/new-users-excel/101935-auto-copy-old-data-new-cell.html)

walt007

auto copy old data to new cell
 
How does one automate the copying of old data in cell A to cell B when new
data is entered in cell A?

bigwheel

auto copy old data to new cell
 
It's not strictly possible to achieve this because entering new data into a
cell destroys the old data but you could use something like the following
which copies the existing data on selection of the required cell before you
type new data in.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Select Case Target.Column
Case 1
If ActiveCell.Value "" Then
ActiveCell.Offset(0, 1).Value = ActiveCell
End If
Case Else
End Select
End Sub

"walt007" wrote:

How does one automate the copying of old data in cell A to cell B when new
data is entered in cell A?



All times are GMT +1. The time now is 06:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com