ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Identify Cell location in VBA (https://www.excelbanter.com/excel-programming/289238-re-identify-cell-location-vba.html)

Rob van Gelder[_4_]

Identify Cell location in VBA
 
James,

Sub test()
Dim rng As Range

Set rng = ActiveCell
Debug.Print rng.Address
End Sub

Rob


"James Stricklen" wrote in message
...
Hello, I'm trying to identify the current cell location using code. For

example, the active cell is A1. I was looking for some code which would
take the active cell and store it in a variable. Any help would be
appreciated.

James





All times are GMT +1. The time now is 12:08 AM.

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