View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.programming
John[_139_] John[_139_] is offline
external usenet poster
 
Posts: 19
Default Determine name of macro contained in each excel file in a folder

OK, I got rained out tonight so a few extra minutes to play with this.

I checked the reference noted below, and did get further (at first it
was a compile error I think).

But now I get an error on this line (of Chip's example):

Set VBProj = ActiveWorkbook.VBProject

which says Programmatic access to Visual Basic Project is not trusted.

If I try to step again on this line of code the error changes to:

Method 'VBProject' of object '_Workbook' failed


FWIW, I'm on WinXP and Excel 2007.

On May 5, 3:06*pm, isabelle wrote:
on the VBA window, go the the Tools menu and choose References.
In that dialog, scroll down to and check the entry for Microsoft Visual Basic For Applications Extensibility 5.3.
If you do not set this reference, you will receive a User-defined type not defined compiler error.

--
isabelle

Le 2012-05-05 17:01, John a écrit :



Isabelle,


a réf. for Microsoft Visual Basic For Applications Extensibility 5.3


I have no idea what that is! Guess I need to do a little mroe
research.


On May 5, 2:54 pm, *wrote:
hi John,


did you added a réf. for Microsoft Visual Basic For Applications Extensibility 5.3


================================================== =========================**======================= ==============
•First, you need to set an reference to the VBA Extensibililty library.
The library contains the definitions of the objects that make up the VBProject.
In the VBA editor, go the the Tools menu and choose References.
In that dialog, scroll down to and check the entry for Microsoft Visual Basic For Applications Extensibility 5.3.
If you do not set this reference, you will receive a User-defined type not defined compiler error.
================================================== =========================**======================= ==============- Hide quoted text -


- Show quoted text -