Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: DHTML - pasteHTML error


Message #1 by djallan@s... on Mon, 10 Sep 2001 19:47:31
I get the following error when the last statement in the code below 
executes at run time: An exception of type htmlfile: Unspecified 
error. 'was not handeled. Anyone know what and what I can do to fix it?

'highlight row
  Set collTheRow = document.all("tblListRemarks").rows
(rmkdetail.txtRowRef.value)
  Set rngExisting = document.body.createTextRange()
  rngExisting.moveToElementText(collTheRow)
  rngExisting.select

  'change background color of highlighted row
  rngExisting.pastehtml("<FONT STYLE=""background:yellow"">" & 
rngExisting.HTMLtext & "</FONT>")


Thanks, Dean

  Return to Index