Sub HelloWPS() MsgBox "VBA works in WPS!" End Sub To run: .
| Feature | MS Excel VBA | WPS VBA | |--------|-------------|---------| | Application.ScreenUpdating | Works | Works | | Application.Wait | Works | Works | | UserForm | Full support | Limited (some controls missing) | | ChartObject | Works | May need testing | | FileDialog | Works | Works |
Application.ScreenUpdating = False Application.Calculation = xlCalculationManual …and reset at the end. vba wps
If a macro runs slower in WPS, add this at the beginning:
Sub AutoFitAllColumns() Dim ws As Object Set ws = ActiveSheet ws.Columns.AutoFit End Sub Sub HelloWPS() MsgBox "VBA works in WPS
Getting Started with VBA in WPS Office: A Practical Guide
Most people think VBA is exclusive to Microsoft Excel. But WPS Office (Spreadsheets & Writer) also supports VBA macros. However, there’s a catch — and a simple fix. But WPS Office (Spreadsheets & Writer) also supports
Have you tried VBA in WPS? What worked or failed? Share below 👇