get cell.address question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is there way to reture the address of a cell without an absolute reference?

Ie, I want address in A4:B7 format, and not in $A$4:$B%7 format.

I'm using Office2003
 
augustus said:
Hi,

Is there way to reture the address of a cell without an absolute reference?

Ie, I want address in A4:B7 format, and not in $A$4:$B%7 format.

I'm using Office2003
 
Sub test()
MsgBox Selection.Address
MsgBox Selection.Address(True, False)
MsgBox Selection.Address(False, True)
MsgBox Selection.Address(False, False)
MsgBox Selection.Address(True, True, xlR1C1)
MsgBox Selection.Address(False, False, xlR1C1)
End Sub

HTH. Best wishes Harald
 
Augustus

Try
rng.Address(RowAbsolute:=False, ColumnAbsolute:=False)

where rng is your range object.
 
The Address method has rowAbsolute and columnAbsolute arguments. For
example, to assign the activecell address to the variable c you would use:

c = Activecell.Address(rowAbsolute:=False, columnAbsolute:=False)

Stan Shoemaker
Palo Alto, CA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top