Automate Employee Responses into a Master Workbook in WPS Office Spreadsheets
Question details
The user wants to consolidate employee questionnaire responses from multiple sheets into a single master workbook and needs guidance on VBA macros, Power Query, Office Scripts, or safer alternatives for confidential HR data.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- The user manages multiple employee questionnaire sheets and wants to combine the responses into one master workbook without manually copying each row.
- Observed behavior
- A local Excel workbook does not provide strong user-level privacy or role-based access, and worksheet passwords alone are not sufficient for confidential HR responses.
Before running any consolidation macro or query, confirm that every response sheet uses the same columns in the same order and that the destination master sheet has matching headers. This prevents mismatched rows and makes the appended data immediately usable.
Append Employee Responses with a VBA Macro in WPS Spreadsheets
Use this when response sheets share the same layout and you need a repeatable, one-click way to copy each defined range into the next available row of a master sheet.
A VBA macro is best for workbook-based consolidation because it copies only the defined data range and leaves the existing master table intact.
This method is suitable for non-sensitive internal data. Worksheet passwords do not provide strong user-level privacy for confidential HR responses.
In WPS Spreadsheets, open the workbook that contains the response sheets and press Alt+F11 to open the Visual Basic for Applications editor.
In the VBA editor, go to Insert > Module to create a new module where the macro code will be placed.
Paste the TransferDataToMasterSheet macro and replace MasterSheet and DataSheet with your actual sheet names. Adjust the range A2:D to match the employee response columns.
Close the VBA editor, return to the workbook, press Alt+F8, select TransferDataToMasterSheet, and click Run. The data is copied into the next empty row in the master sheet.

Consolidate Employee Response Files with Power Query in Microsoft Excel
Use this when you are working in Microsoft Excel and prefer a refreshable, no-code query that can be updated when response files change.
Use Microsoft Forms and SharePoint for Secure HR Response Collection
Use this for confidential employee responses that require user-level access control, auditing, and role-based permissions.
Build an Automated Master Employee Response Workbook in WPS Office Spreadsheets
Use WPS Office Spreadsheets to run VBA macros that append employee questionnaire responses into one master sheet. It gives you a familiar Excel-compatible interface, supports existing macro-enabled workbooks, and keeps the workbook-based process simple without changing your current file structure.
- 1. Open WPS Office Spreadsheets: Launch WPS Office and open the workbook that contains the employee response sheets.
- 2. Enable macros if prompted: If the workbook contains macros, click Enable Content when the security warning appears so that VBA macros can run.
- 3. Open the VBA editor: Press Alt+F11 to open the VBA editor, then insert a module from the Insert menu and paste the TransferDataToMasterSheet macro.
- 4. Customize sheet names and range: Replace MasterSheet and DataSheet with your actual sheet names and set the range A2:D to match the employee response columns.
- 5. Run the macro: Close the VBA editor, press Alt+F8, select the macro, and click Run. The employee responses are copied into the next available row of the master sheet.

Frequently Asked Questions
Can WPS Office run Excel VBA macros?
Yes, WPS Office Spreadsheets supports VBA macros on Windows. Open the VBA editor with Alt+F11 and run macros from Alt+F8. Macro support may vary by version, so test the workbook before rolling it out to other users.
Why are worksheet passwords not enough for confidential HR responses?
Worksheet passwords can be shared, removed, or bypassed by users who know the password, and they do not provide user-level audit logs or role-based access. For confidential responses, use Microsoft Forms with SharePoint, Power Automate, or an HR system.
How do I change the range in the VBA macro?
In the macro, edit the line that sets rngCopy, for example A2:D100 or A2:D combined with lastRowData, to match the exact columns and rows you want to copy from each response sheet.
Can I use Power Query to combine multiple employee response workbooks?
Yes, in Microsoft Excel use Data > Get Data > From File > From Workbook, append the queries, and load the result to a master table. WPS Office Spreadsheets does not include the full Power Query feature, so use a VBA macro for a workbook-based WPS solution.
What is the safer alternative to a local Excel workbook for HR data?
Use Microsoft Forms for automatic response storage, then connect it to SharePoint or Power Automate so each employee submits only their own form and managers see only authorized records.




