ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Address (https://www.excelbanter.com/excel-programming/284687-address.html)

John Collins[_3_]

Address
 
Hi
The question is: How to find if a specific cell has been selected and show
its Column, Row and Address?

Thank for your time.




J.E. McGimpsey

Address
 
One way:

If ActiveCell.Address(False, False) = "A1" Then
Msgbox "Column: " & ActiveCell.Column & vbNewLine & _
"Row: " & ActiveCell.Row & vbNewLine & _
"Address: " & ActiveCell.Address
End If

In article ,
"John Collins" wrote:

Hi
The question is: How to find if a specific cell has been selected and show
its Column, Row and Address?

Thank for your time.




Bob Phillips[_6_]

Address
 

If not intersect(Activecell, Range("A1:H100")) Then
Msgbox ACtivecell.Address
End If

Untested, but should give some leads.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"John Collins" wrote in message
...
Hi
The question is: How to find if a specific cell has been selected and show
its Column, Row and Address?

Thank for your time.







All times are GMT +1. The time now is 03:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com