and also how should i know, in which frames object are exits?
i loop all the frames till i find the desired element

vb Code:
  1. for i = 1 to objhtmldoc.frames.length
  2.   for each ele in objhtmldoc.frames(i).document.all
  3.        if ele.id = "ctl06_KeepCopyCheckBox" then msgbox "ele in frame " & i : exit for  ' or keep going if element could occur in more than one frame
  4.   next
  5. next

working with html elements in frames can be difficult