In large bowl, combine margarine, confectioners' sugar, condensed milk, coconut, chopped walnuts and vanilla. Stir well. Cover and chill in the refrigerator for 2 hours, or until mixture has thickened enough to roll into balls. Roll the mixture into 1-inch balls and place close together, but not touching, on cookie sheets. Freeze until hard.