Common questions about Switch to JS Environment in WPS on Windows usually involve environment differences, code compatibility, and what happens after switching; this FAQ covers 3 common questions.
FAQ
What is the difference between the JS environment and the VBA environment?
- The JS environment uses JavaScript and is better suited to cross-platform scripting workflows.
- The VBA environment uses VBA and is commonly tied to traditional Windows macro workflows.
- Choose the environment based on the macro language you need to maintain and the platform you use.
Can I still use VBA code after switching to the JS environment?
- After switching to the JS environment, you need to write code with JavaScript syntax.
- Existing VBA code does not run directly as JavaScript code.
- To keep using VBA code, switch back to the VB environment.
Will my existing macro code still work after I switch environments?
- Switching environments does not delete saved macro code.
- Code from different environments needs to run in its matching environment.
- Switch back to the original environment to continue running that code.
Glossary
| Term | Definition |
|---|---|
| JS environment | The JavaScript macro development environment used to write and run JavaScript macro code. |
| VBA environment | The VBA-based macro development environment commonly used in traditional Windows macro workflows. |
| Default JS Development Environment | A setting that makes WPS open the macro editor in the JavaScript environment after restart. |