Use of "Formula" prt2

E

Ernesto

hello all...i found this code and would like to know the following:

ActiveCell.Formula = "=" & ActiveCell.Offset(0, -1).Address & " / " & _
ActiveCell.Offset(-1, -1).Address

is there anyway to make one of the cells in the formula relative and
not absolute?

the result of this formula is (ie) "=$A$1/$B$1" and i'd like it to be
something like "=A$1 / $B$1"

Thanks!
 
B

Bob Phillips

ActiveCell.Formula = "=" & ActiveCell.Offset(0, -1).Address(,False) & " / "
& _
ActiveCell.Offset(-1, -1).Address(,False)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Similar Threads


Top