dim temp as int, theSms As Sms temp=theSms.Type Returns a syntax error. I don't think it likes the method Type I can't even do: Select Case theSms.Type I can substitute the value for something else and I get no error