Background info: A htmp file with vbscripts and the dwf viewer imbedded in it. What I'm doing is loading a different dwf's file (mulitisheet) and trying to get the sheet collection in a listbox. This function works when I call it but with out the msgbox it will not do the listbox part. Is there a way to use a wait or sleep until the viewer is completely load then finish? function A_dwf adview.SourcePath="A_Units.dwf" <--loads this OK MsgBox "Ok here" <--with out this it runs too fast ListBox1.Clear <-- need to break,wait or sleep here for each page in AdView.Viewer.Pages ListBox1.additem page.name next end function Murph