[quote user="blumax57"]Else oEl.Level.Name = "z_profondita"[/quote]
Barry is correct. Your statement attempts to assign the value "z_profondita" to the element. That's possibly why you see the error Il nome del livello e doppio.
You can, by the way, use a Select Case statement to test string values...
Select Case oEl.Level.Name Case "ril_quote" numbercase = 2 Case "z_profondita" numbercase = 3 Case Else Debug.Print "Unrecognised level name" numbercase = -1 End Select