This translator is intended to be used as an educational tool to help VBA developers get familiar with JavaScript.
This tool will NOT perform a 100% complete translation. It is designed to cover the most used constructs in VBA (enough to get you started).
Start by entering or pasting a basic block of VBA code (be sure to include your Function/Sub wrappers).
Review how that code looks in JavaScript. Next, try increasingly more advanced code examples (loops, if statements, etc.).

VBA

 

JavaScript