Formula to determine if the cell is selected:

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
I have no idea but is there by any chance a formula to know what the active selection cell?

suppose i click on B1 and in A1 = formula??? will show "B1"...I am talking bout formula not click event code etc.

If there is any such formula then pls share...I was kinda increased expectation as the other Peter gave a formula to find the activeworkbook path by just entering a formula..:biggrin:

Thanks for reading..now psl answer:;)
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
This is taken from the XLM help file :

The following macro formula puts the reference of the active cell into the cell named Temp:
FORMULA("="&REFTEXT(ACTIVE.CELL()), Temp)

I have tried adding a name that refers to the above EXCEL4 formula but coudn't make it work. I hope someone can and let us know .
 
Upvote 0
Is this what you are trying to do?
With Cell A3 selected:
Excel Workbook
AB
1
2Formula: A3
3
...

Code:
Sub Aktivecel()
[B2] = "Formula: " & Replace(ActiveCell.Address, "$", "")
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,849
Members
449,471
Latest member
lachbee

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