Dim MyVar MyVar = Mid(“VBScript is fun!”, 4, 6) ‘ MyVar contains “Script”.
Note:
In the MidB function, used with byte data that is contained in strings, arguments specify bytes and number of bytes, rather than characters and number of characters.