NEED URGENT HELP.

AJ_121

New Member
Joined
Jan 3, 2020
Messages
17
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Dear,
I am new in excel and i need a help that which cell i select from the whole sheet that name/number/data automatically should be show on Cell B2.


Example i am sharing via image attached, in this image someone has selected Cell N2 and that is showing on Cell P2. Wherever he clicks that cell data comes on Cell P2.
How i can do this please help.
 

Attachments

  • Sample.PNG
    Sample.PNG
    5.5 KB · Views: 9

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Firstly, in relation to the urgency of your request, please note 5g and 5h of the forum Guidelines


Try this Worksheet_SelectionChange event code. To implement ..
1. Right click the sheet name tab and choose "View Code".
2. Copy and Paste the code below into the main right hand pane that opens at step 1.
3. Close the Visual Basic window & test.
4. Your workbook will need to be saved as a macro-enabled workbook (*.xlsm).

VBA Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  Range("B2").Value = ActiveCell.Value
End Sub
 
Upvote 0
I'm really sorry sir.

Next time i'll take care of it.

Thank you so much for your help.?
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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