Learn how to execute a Javascript within a VBA Code? It is not that tough to code a Javascript within VBA and make it execute within Excel itself. All you just have to do is, reference Microsoft Script Control Library and start coding your Javascript or VBscript as explained in this page.