Adam,
Thanks, I see that I will need to do something differently later in the function. However, as it stands now, because of the apparent failure of the statement which contains the reference to (editor1doc.selection).type) , I can't get down to the point where htmlText is referenced. Do I need to do that differently in Firefox (again, this all works fine in IE)?