Writing scripts in Visual Basis for Applications (VBA) is convenient for automating tasks within Word, Excel, etc. However, if you then want to be able to run any of those scripts as VBScript there are functions of VBA that are not supported in VBScript that you will have to modify before the script will compile. A list of VBA functions that are not supported in VBScript can be found here. The Control Flow functions (e.g. GoTo command) got me recently.