I appreciate the collective wisdom of the group.
I found these snippets of code on the internet and have tried to adopt them to my situation and by no means intend to plagiarize anyone ...
I want to capitalize every word in a cell. I invoke the follow script from my onEdit(e) function. Doesn't do anything. This just doesn't look like right and obviously I am missing important data ...
function onEdit(e) { TitleCase(e); }
function TitleCase(e) {
return e.toString().split(/\b/).map(function (word) {
return e ? e.charAt(0).toUpperCase() + e.slice(1).toLowerCase() : '';
}).join('');
}
I am a newbie and I really appreciate any guidance.
Jim
I invoke the follow script from my onEdit(e) function.
, in this case, how do you execute the function ofTitleCase
? If you execute it fromonEdit
, can you show the script ofonEdit
? Because I thought that it is required to correctly know about the value ofe
. – Tanaike