Z
zSplash
How do I programmatically unprotect a VBA project? That is, I have copied
my Normal.dot as an addin, and now want to programmatically re-name the
addin (so that I can use VBE.VBProjects(x).Name to modify the code). I
tried:
Documents.Open FileName:="C:\newAddin.dot"
VBE.ActiveVBProject.Unprotect "password"
and get the error 438, Object doesn't support this property or method. Not
to complain, but it seems like I'm going in circles trying to do something
relatively simple. Please help.
TIA
my Normal.dot as an addin, and now want to programmatically re-name the
addin (so that I can use VBE.VBProjects(x).Name to modify the code). I
tried:
Documents.Open FileName:="C:\newAddin.dot"
VBE.ActiveVBProject.Unprotect "password"
and get the error 438, Object doesn't support this property or method. Not
to complain, but it seems like I'm going in circles trying to do something
relatively simple. Please help.
TIA