Try this code below:
Insert the reporter statements accordingly. The code first checks the dialog box exists and then activates the 'Yes' button.
Code:
IF Browser("Mybrowser").Dialog("Internet Explorer").Exist(0) Then
Browser("Mybrowser").Dialog("Internet Explorer").WinButton("Yes").Activate
Browser("Mybrowser").Dialog("Internet Explorer").WinButton("Yes").Click
End IfInsert the reporter statements accordingly. The code first checks the dialog box exists and then activates the 'Yes' button.

