Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26397
    David
    Participant

    Does “document.selection.Replace” support multiple selection?
    If select one string, it works very well. However, if select serveral strings (Click string while keeping press Ctrl key), then this command has no response.
    How should I do to support multiple selection?

     <li>	strFind=document.selection.Text;
     	document.selection.Replace(strFind,sStr+strFind+sStr2,eeFindNext | eeFindReplaceEscSeq | eeReplaceAll ); </li>
    #26400
    Yutaka Emura
    Keymaster

    Hello,
    You will need to add the eeFindReplaceSelOnly flag. You can record the macro if you are not sure.
    Thanks,

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.