Can Excel script be triggered by a cell change?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,210
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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,223,227
Messages
6,170,847
Members
452,361
Latest member
d3ad3y3

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