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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top