We have this code below. For one user, it seems, she gets the 1004 Method 'Names' of object '_Global' failed the first time she opens this XLSM file. If she closes the XLSM file and comes back in she doesn't get it the second time. If we add Names to a watch it just gives use that same error. I'll attach a screen shot of that. Again though it seems to work for her the second time through and nobody else seems to have the error. Any idea what could be causing this? Also she was on 32bit Excel and got the error and has now been upgraded to 64bit and still gets it.
Dim nName As Name
For Each nName In Names
If InStr(1, nName.RefersTo, "#REF!") > 0 Then
nName.Delete
End If
Next nName
End Sub
Dim nName As Name
For Each nName In Names
If InStr(1, nName.RefersTo, "#REF!") > 0 Then
nName.Delete
End If
Next nName
End Sub