ExcelBanter

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

Thomas[_9_]

Cell Address
 
How would I define the cell address of the cell above my
activecell?

Thanks in advance

Ron de Bruin

Cell Address
 
Try this

MsgBox ActiveCell.Offset(-1, 0).Address


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Thomas" wrote in message ...
How would I define the cell address of the cell above my
activecell?

Thanks in advance




Don Guillett[_4_]

Cell Address
 
Is this what you want?
Sub defineabove()
x = ActiveCell.Offset(-1).Address
MsgBox x

End Sub


"Thomas" wrote in message
...
How would I define the cell address of the cell above my
activecell?

Thanks in advance




Alan Beban[_4_]

Cell Address
 
One way: ActiveCell(0, 1).Address

Alan Beban

Thomas wrote:
How would I define the cell address of the cell above my
activecell?

Thanks in advance




All times are GMT +1. The time now is 05:43 AM.

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