So define it. I think it should be Dim f As HTMLDocument