Run-time error '50029'; Method 'Export' of object 'VBComponent' fa

J

jaslegume

My syntax is this:

VBE.ActiveVBProject.VBComponents(1).Export filename

Why am I getting this error?
 
J

Jonathan West

jaslegume said:
My syntax is this:

VBE.ActiveVBProject.VBComponents(1).Export filename

Why am I getting this error?

Various possibilities.

1. "filename" doesn't include a valid file name

2. Your security settings (Tools Macro, Security), do not trust access to
the Visual Basic project

3. The VBA project in the template is locked for viewing.
 
Top