How to Automatically Record Username and Timestamp in Excel for the Web
Question details
User needs a way to automatically log the username and timestamp beside a newly entered remark in Excel for the web.

- Product
- Excel for the Web
- Device & OS
- not provided
- Scenario
- Tracking user changes and adding automatic timestamps when remarks are entered in a shared web workbook.
- Observed behavior
- Excel for the web does not support VBA macros, preventing traditional macro-based automation from running and placing user details next to remarks.
Ensure you have access to Microsoft Power Automate or the desktop version of Excel, as VBA macros are strictly unsupported in the browser-based version of Excel.
Automate Timestamping using Power Automate
Since VBA is not supported in Excel for the web, Power Automate is the most effective cloud-based alternative to monitor changes and log user details automatically.
Power Automate can run in the background, monitoring your Excel tables for new entries or modifications, and automatically write the modifier's details into specific columns.
Open your workbook in Excel for the web. Ensure your data (including the remarks column and empty columns for Username and Timestamp) is formatted as a formal Excel Table (Insert > Table).
Log into Power Automate. Click 'Create' and select 'Automated cloud flow'. Choose the trigger 'When a row is created or modified' under Excel Online (Business).
In the flow setup, select the Location (OneDrive or SharePoint), the Document Library, the specific File, and the Table you created earlier.
Add a new step: 'Update a row' (Excel Online). Map the Key Column to identify the row, then click into the Username and Timestamp fields. Select dynamic content like 'Modified By Display Name' and 'Modified' (timestamp) to fill these fields.
Save your flow. Return to Excel for the web, type a new remark in your table, and wait a few moments for Power Automate to populate the username and timestamp.

Use Desktop Excel with a VBA Macro
If your team can access the desktop application, you can use a traditional VBA Worksheet_Change event to record timestamps.
Experience Robust Macro Support with WPS Office
VBA limitations in web browsers can disrupt your team's workflow automation. If you rely heavily on macros, WPS Office provides a powerful, lightweight, and free desktop alternative with excellent VBA macro support and seamless compatibility with Microsoft Excel formats.

Frequently Asked Questions
Why doesn't my VBA code work in Excel for the web?
Excel for the web simply does not support VBA macros. While you can store and view macro-enabled workbooks (.xlsm) in the browser, the VBA code cannot be executed unless the file is opened in the desktop version of Excel.
Can I use Office Scripts instead of VBA in Excel for the web?
Yes, Office Scripts (using TypeScript) are supported in Excel for the web for enterprise users. You can write a script to record timestamps, but unlike VBA's Worksheet_Change event, Office Scripts typically require manual execution or need to be triggered by a Power Automate flow.
Will the Power Automate method work for all users editing the web file?
Yes. Once the Power Automate flow is set up and attached to the shared Excel table, it runs in the cloud. It will automatically trigger and log the details regardless of which user makes the modification in the web workbook.




