Can Excel script be triggered by a cell change?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,201
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,
One day excel scripts will be useful, I hope, but everytime I come back to it I'm left wondering when.
I looked today and noticed some nice new features like add a button to run.

so can anyone tell me, is it possible to get a script to run from a cell change?

if it is could some give me an example,

any example will do but what I'm trying to do is put the date and time into Column D same row when data is added to column E

please help if you can

P.s. this is for excel scripts not VBA!

Thanks

Tony
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
There aren't Worksheet_change events in Office Scripts like there are in VBA. You can utilize Power Automate to run every 30 minutes/every hour, or run every time the worksheet is updated/changed but it wouldn't realistically figure out what was changed. Excel Online has an ability to Track Changes, but Office Scripts and Power Automate aren't able to get the Track Changes information.
 
Upvote 0
Solution
Thank you for your help,
I can do it using a button, just wanted to check first so thanks for the advice.
Tony
 
Upvote 0

Forum statistics

Threads
1,216,156
Messages
6,129,188
Members
449,492
Latest member
steveg127

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top