Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get address of Cell
Hello
I am using: Dim x as Range Range("B65536").End(xlUp) to find the last used cell. Ive tried assigning a variable to this and it returns the value of the cell x = Range("B65536").End(xlUp) ' returns cell value I need x to return the cell address without activating the cell. x = Range("B65536").End(xlUp).Address ' does not work Any suggestions? Thank you Terry |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get address of Cell
Hi Terry,
Sub Tester02() Dim x As Range Set x = Range("B65536").End(xlUp) MsgBox x.Address End Sub --- Regards, Norman "Terry V" wrote in message ... Hello I am using: Dim x as Range Range("B65536").End(xlUp) to find the last used cell. Ive tried assigning a variable to this and it returns the value of the cell x = Range("B65536").End(xlUp) ' returns cell value I need x to return the cell address without activating the cell. x = Range("B65536").End(xlUp).Address ' does not work Any suggestions? Thank you Terry |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get address of Cell
but
Sub Tester03() Dim x as String x = Range("B65536").End(xlUp).Address ' does work msgbox x End sub would work as well. Just for the OP's benefit. -- Regards, Tom Ogilvy "Norman Jones" wrote in message ... Hi Terry, Sub Tester02() Dim x As Range Set x = Range("B65536").End(xlUp) MsgBox x.Address End Sub --- Regards, Norman "Terry V" wrote in message ... Hello I am using: Dim x as Range Range("B65536").End(xlUp) to find the last used cell. Ive tried assigning a variable to this and it returns the value of the cell x = Range("B65536").End(xlUp) ' returns cell value I need x to return the cell address without activating the cell. x = Range("B65536").End(xlUp).Address ' does not work Any suggestions? Thank you Terry |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),QuoteNotes, | Excel Worksheet Functions | |||
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),Range ... ? | Excel Worksheet Functions | |||
Return cell address of a cell based on contents of cell. | Excel Worksheet Functions | |||
find last cell in range with data, display cell address | Excel Worksheet Functions | |||
How make hyperlink refer to cell content rather than cell address. | Excel Discussion (Misc queries) |