Seems like this is only fireing at the very end of the cycle of htm files. Only the 100th htm is accessing the documentcompleted code?
If just keeps cycling through each htm page and once its done, then the documentcompleted aspect fires?Code:Strpath = "\\server\Intranet\Intranet\CAD Dept" For Each strdir In IO.Directory.GetFiles(Strpath, "*htm", IO.SearchOption.TopDirectoryOnly) wb.Navigate(strdir) Next




Reply With Quote