logo
search
VBA & Macro Problems

How to Automatically Record Username and Timestamp in Excel for the Web

Nimra MalikNimra Malik Oct 10, 2026 868 views

Question details

User needs a way to automatically log the username and timestamp beside a newly entered remark in Excel for the web.

How to Automatically Record Username and Timestamp 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.
Before you start

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.

Solution 1Recommended

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.

1
Prepare your Excel Web Table

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).

2
Create a New Flow

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).

3
Configure the Target Workbook

In the flow setup, select the Location (OneDrive or SharePoint), the Document Library, the specific File, and the Table you created earlier.

4
Add an Update Action

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.

5
Save and Test

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.

Automate Timestamping using Power Automate
Table Requirement: Power Automate requires your data to be formatted as an Excel Table to correctly identify and update specific rows.
Free Microsoft Office alternative

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.

High compatibility with Microsoft Excel (.xlsx, .xls, .xlsm) formats.Robust built-in support for VBA macros in the desktop version.Lightweight software that runs smoothly on older devices.Familiar user interface requiring zero learning curve.
microsoft office alternative - wps office

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.