Mark
From a Chip Pearson post...........
When using the CELL function, it is VERY important to include the second
argument, called 'reference', in the call. You can use any cell as this
reference -- it doesn't matter for "filename". The reason you want to include
the argument is that if another sheet is active with the formula is calculated
(for example, if Excel decides to do a full recalculation), the Active Sheet
is used by CELL, not the sheet that contains the formula.
To see what happens without the 'reference' argument, enter your formula in A1
on Sheet1. Then flip over to Sheet2, and press CTRL+ALT+F9 to force a total
recalculation. Now go back to Sheet1. You'll see that the result is Sheet2,
not Sheet1. This is because when the formula was calculated, the Active Sheet
is used by CELL, not the sheet containing the formula.
End Chip's post......................
Gord Dibben Excel MVP