You close the application on the lines
objie.Quit
Set objie = Nothing
and try to use it later
objie.document.getelementbyname("d").Value = aloha
you get the error because you closed IE and set the pointer to Nothing
Furthermore, there is no getelementbyname, only getelementSbyname, and it returns a Collection, so you should write:
objie.document.getelementsbyname("d")(0).Value = aloha
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…