![]() |
A1= A2 (When selected).A3 (When selected)
How Would I code A1= A2 (When selected).A3 (When selected) in Excel
|
A1= A2 (When selected).A3 (When selected)
Maybe:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) [A1] = ActiveCell.Value End Sub Go to the VBA Editor (Alt+F11), click on the sheet where need this code and paste above code into the code window. It will put the value of the Active cell (=same as seleted cell if only one cell is selected) into A1. Cheers, Joerg "electromatt" wrote in message ... How Would I code A1= A2 (When selected).A3 (When selected) in Excel |
A1= A2 (When selected).A3 (When selected)
Thats exacly what I needed. Thanks alot.
"Joerg" wrote: Maybe: Private Sub Worksheet_SelectionChange(ByVal Target As Range) [A1] = ActiveCell.Value End Sub Go to the VBA Editor (Alt+F11), click on the sheet where need this code and paste above code into the code window. It will put the value of the Active cell (=same as seleted cell if only one cell is selected) into A1. Cheers, Joerg "electromatt" wrote in message ... How Would I code A1= A2 (When selected).A3 (When selected) in Excel |
All times are GMT +1. The time now is 09:17 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com