VBScript Tutorial

VBScript Tutorial

Microsoft VBScript (Visual Basic Script) is a general-purpose, lightweight and active scripting language developed by Microsoft that is modeled on Visual Basic. Nowadays, VBScript is the primary scripting language for Quick Test Professional (QTP), which is a test automation tool.

This tutorial will teach you how to use VbScript scripting language in your day-2-day life of any Web based or Automation project development.


This tutorial has been prepared for the beginners to help them understand basic-to-advanced functionality of VBScript. After completing, this tutorial you will find yourself at a moderate level of expertise in using Microsoft VBScript from where you can take yourself to next levels.


We assume you have a little knowledge of any computer programming and understand concepts like variables, constants, expression, statements, etc. If you have done programming in any client side language like Javascript, then it will be very much beneficial and learning VBScript will be like a fun for you.

Try VBScript Online

For most of the examples given in this tutorial you will find Try it option, so just make use of it and enjoy your learning.

So if you are using Internet Explorer then try following example using Try it option available at the top right corner of the below sample code box:

<script language="vbscript" type="text/vbscript">
   document.write("Hello World!")

1 - VbScript Quick Reference Guide

A quick VbScript reference guide for Web and QTP Programmers.

VbScript Quick Reference Guide

2 - VbScript Useful Resources

A collection of VbScript Sites, Books and Articles is given at this page.

VbScript Useful Resources

3 - VbScript Tutorial in PDF

Download a quick VbScript tutorial in PDF format.

VbScript Tutorial in PDF