Hi, Don't know how to do this at all, but if the onclick of a button is similar to below:
onclick="ConfirmAvailable();"
function ConfirmAvailable()
{
if (document.getElementById("AvailableCB").checked)
{
return YesNoDialog("'Are you sure?'");
}
else
{
return true;
}
}
Is it possible, if I set ConfirmAvailable()="" using Excel VBA, to reset it to what is above, or even to set the output to =true all the time? The results are passed to another function, so I need it to return true, but ideally, I'd like to change it to nothing, then return it to its original state, if possible. Any help would be appreciated, as I'm not good with this stuff.