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 vba wps
Getting Started with VBA in WPS Office: A Practical Guide If a macro runs slower in WPS, add
Application.ScreenUpdating = False Application.Calculation = xlCalculationManual …and reset at the end. vba wps
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.