How to default links to RELATIVE reference

G

Guest

My Links between different Excel files are always absolute. Can I change them
to record relative. and 2) Can a change all the asolutes to relative at one
time. Keep in mind that I am linking up to 30 files including some Word files.
 
G

Gord Dibben

I don't believe you can change the default to relative cell references.

To change all at once from absolute to relative use this macro.

Sub Relative()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula _
(cell.Formula, xlA1, xlA1, xlRelative)
Next
End Sub


Gord Dibben MS Excel MVP

On Mon, 11 Sep 2006 13:47:01 -0700, David Diamond Del Vecchio <David Diamond Del
 

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

Top