Check the tutorial at

http://www.w3schools.com/vbscript/default.asp

After going through this, you will be able to have your own VB scripts.