in VBA possibile gestire i nomi delle celle:

sintassi:
ActiveWorkbook.proprietà
ActiveWorkbook.Names.comando


proprietà:

esempio: verifica tutti i nomi delle celle e cancella quelli con riferimenti esterni
For Each nome In ActiveWorkbook.Names

If InStr(nome.RefersTo, "[") > 0 Then
ActiveWorkbook.Names(nome.Name).Delete
End If
Next nome



esempio: verifica tutti i nomi delle celle e cancella quelli con errore REF
For Each nome In ActiveWorkbook.Names

If InStr(nome.RefersTo, "#REF!") > 0 Then
ActiveWorkbook.Names(nome.Name).Delete
End If
Next nome


comandi: