Refresh an Excel Query After Using the Data Entry Form
Question details
The user needs an Excel query to refresh after records are added through the built-in data entry form.

- Product
- Microsoft Excel Power Query
- Device & OS
- not provided
- Scenario
- Records are added to an Excel Table through the built-in data form, and a query uses the table as its source.
- Observed behavior
- A refresh tied to Worksheet_Change may not run when records are entered through the data form.
Check that the new records appear in the source Excel Table. In Data > Queries & Connections, open the query and verify that its Source step refers to the table rather than a fixed cell range.
Refresh the query after closing the data form
Use Excel's refresh command when you want a reliable manual refresh without relying on a worksheet event.
Enter the record in Excel's data form, then close the form and confirm that the new row appears in the source table.
Go to Data > Refresh All to refresh the workbook's queries and connections. To refresh one query, open Data > Queries & Connections, right-click the query, and select Refresh.
Open the query's output table or report and verify that it includes the new record.

Run a refresh macro after adding records
Use a macro or an assigned button to refresh the workbook after data entry, or call the macro from existing record-saving VBA.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative for working with spreadsheets in a familiar interface. Its Excel format support makes it easier to move everyday files between office suites, though it does not fix Excel's data-form events or guarantee Power Query and VBA compatibility.

Frequently Asked Questions
Why doesn't Worksheet_Change refresh my query after I use the data form?
The built-in data form may not trigger Worksheet_Change like a direct worksheet edit. Close the form and use Data > Refresh All, or run a refresh macro.
How can I refresh just one query?
Go to Data > Queries & Connections, right-click the query, and select Refresh.
Why is the new record missing after I refresh?
Check that the record is inside the source Excel Table. Then open the query from Data > Queries & Connections and inspect its Source step to ensure it uses the table rather than a fixed range. Also check any query filters.
Can VBA wait for a refresh to finish?
After ThisWorkbook.RefreshAll, VBA can call Application.CalculateUntilAsyncQueriesDone to wait for pending asynchronous queries. Test the specific connections in your workbook before relying on it for later processing.




