excel - ActiveVBProject.References Error in .FullPath -
we have module checks machine information troubleshooting purposes. 1 of sub modules checks each reference breaks. single reference, microsoft office soap library 3.0 halts on error.
we can work around it, i'm interested know causing error. reference valid, not broken. method of reference object fails library.
method 'fullpath' of object 'reference' failed
private sub geteachref() dim ref variant dim strref string 'on error resume next <- allows rest of code complete each ref in application.vbe.activevbproject.references frmabout.lst_about.additem "[reference] " & ref.description frmabout.lst_about.list(frmabout.lst_about.listcount - 1, 1) = ref.fullpath <- error here if ref.isbroken = true frmabout.lst_about.list(frmabout.lst_about.listcount - 1, 2) = "broken link" end if next end sub
Comments
Post a Comment