See this example on MELAB's website - your questions should be clear after that

http://www.melabs.com/resources/samples/pbp/ser2mod.bas