active cell??

bposaner

Board Regular
Joined
May 28, 2002
Messages
74
All

I've got a score grid, say B2-V22(with the 1st row&col with names.) So if Team A plays Team G, you just look for TeamA in the first col and then Team G in the First Row. And where they intersect you enter the score.

What I want to do is that say I click cell J12 I want to be able to have a Function that will tell me the two teams involved.
So as I select other cells the names displays will also change.

I think "active cell" might play a part, but i'm not sure how.

BP
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
On 2002-10-28 11:08, bposaner wrote:
All

I've got a score grid, say B2-V22(with the 1st row&col with names.) So if Team A plays Team G, you just look for TeamA in the first col and then Team G in the First Row. And where they intersect you enter the score.

What I want to do is that say I click cell J12 I want to be able to have a Function that will tell me the two teams involved.
So as I select other cells the names displays will also change.

I think "active cell" might play a part, but i'm not sure how.

BP

Hi;

i am not sure if this is the correct answer to your question, but it may give you an idea...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
MsgBox "Teams involved are; " & Cells(ActiveCell.Row, 1) & " and " & Cells(1, ActiveCell.Column)
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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