I use the following code to delete selected code modules from my Excel 2003 workbook and it works fine, both on my computer and on my co-workers. We upgraded to Excel 2007 and it still worked fine on my computer but not on my co-workers. I've checked to make sure that all the appropriate libraries are being invoked (6 of them) and they are. The message they get is: "Programmatic access is not trusted" and when I hover over VBComponents in debug mode, I get a "failed" message. Does anyone know what the problem might be?
Thanks,
Paul Hudgens
Denver
Code:
Set ThisVBProject = ActiveWorkbook.VBProject.VBComponents
Call UnprotectVBProj(SecretWord)
For Each VBCom In ThisVBProject
If LCase(VBCom.Name) = "fracfill" Then ThisVBProject.Remove ThisVBProject(VBCom.Name)
Next VBCom
Thanks,
Paul Hudgens
Denver