Check your sheet names.
Your code uses Sheet1 then names the
range as Room data this is OK IF Sheet1 is Room Data.........
ie. Sheet1 is the code name Room data is the Tab name that appears on the workbook.
To check have a look @ the Project explorer
if Room data is the same as Sheet1 then you should
see;
Sheet1(Room data)
If NOT thenchange code to;
Sheets("Room Data").Names.Add Name:=Floorname, RefersToR1C1:= _
HTH
Ivan
If it's not the intention to restrict named range to a range in A which appears to be of numeric type, why not change the COUNT bit in the formula to: MATCH(9.99999999999999E+307,A:A) where you substitute the R1C1 specification?
Is this doable?
Aladin
===========