SOLVED

Cell Value

%3CLINGO-SUB%20id%3D%22lingo-sub-2678234%22%20slang%3D%22en-US%22%3ECell%20Value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2678234%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20use%20the%20content%20of%20the%20active%20cell%20in%20another%20cell%20X.%20So%20it%20means%20that%20whenever%20I%20jump%20to%20another%20active%20cell%2C%20the%20content%20should%20appear%20in%20that%20cell%20X.%3C%2FP%3E%3CP%3ECan%20that%20be%20done%20in%20a%20simple%20way%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETXS%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2678234%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2678674%22%20slang%3D%22en-US%22%3ERe%3A%20Cell%20Value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2678674%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1135993%22%20target%3D%22_blank%22%3E%40karlos_gryspeerdt%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet's%20say%20that%20cell%20X%20is%20A1.%3C%2FP%3E%0A%3CP%3ERight-click%20the%20sheet%20tab.%3C%2FP%3E%0A%3CP%3ESelect%20'View%20Code'%20from%20the%20context%20menu.%3C%2FP%3E%0A%3CP%3ECopy%20the%20following%20code%20into%20the%20worksheet%20module%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-visual-basic%22%3E%3CCODE%3EPrivate%20Sub%20Worksheet_SelectionChange(ByVal%20Target%20As%20Range)%0A%20%20%20%20Me.Range(%22A1%22).Value%20%3D%20ActiveCell.Value%0AEnd%20Sub%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ESwitch%20back%20to%20Excel.%3C%2FP%3E%0A%3CP%3ESave%20the%20workbook%20as%20a%20macro0enabled%20workbook%20(.xlsm).%3C%2FP%3E%0A%3CP%3EMake%20sure%20that%20you%20allow%20macros%20when%20you%20open%20the%20workbook.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Dear all,

 

I would like to use the content of the active cell in another cell X. So it means that whenever I jump to another active cell, the content should appear in that cell X.

Can that be done in a simple way? 

 

TXS

2 Replies
best response confirmed by allyreckerman (Microsoft)
Solution

@karlos_gryspeerdt 

Let's say that cell X is A1.

Right-click the sheet tab.

Select 'View Code' from the context menu.

Copy the following code into the worksheet module:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Me.Range("A1").Value = ActiveCell.Value
End Sub

Switch back to Excel.

Save the workbook as a macro0enabled workbook (.xlsm).

Make sure that you allow macros when you open the workbook.

@Hans Vogelaar 

 

TXS Hans,

 

It works well.

 

Have a nice day.