Port User Defined Function Into Excel Online

marl karx

New Member
Joined
Dec 3, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi, I understand that I need to create an Excel Custom Function using javascript for Excel Online but I have no experience doing that.

Here is the UDF I use on my desktop app and would like to add to my online file:

Function Datestamp(Reference As Range)
If Reference.Value <> "" Then
Datestamp = Format(Now, "mm/dd/yyyy")
Else
Datestamp = ""
End If
End Function

Can anyone guide me on how to port that to excel online? It just date stamps a cell when you type a value into it
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

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