Public.sub or private.sub are the correct commands for VB code i think.