macro object properties

G

Guillem Serra

I wan to read the macro content. but I cannot find a Macro object. I find a
AccessObject but they have only the name property. How can I read the
Action, comment, etc?

Thanks In Advance

Guillem
 
T

Tim Ferguson

I wan to read the macro content. but I cannot find a Macro object. I
find a AccessObject but they have only the name property. How can I
read the Action, comment, etc?

Use DAO to look at the Containers and Documents collections and their
friends and relations. It's well documented in help.


Tim F
 
P

Peter Davies

I have tried this recently and the container for macros is
called "scripts" in the containers collection.

The documents in the container collection however only
store the name of the stored macro but not the
individual 'macro actions'.

As an intermin measure highlight the macro in question in
the database window and then from the File Menu use the
save/Export item. This will give you the otion to convert
the macro into a VBA code meodule: effectively a series of
DOcmd actiuons.

Regards

Peter
 
G

Guillem Serra

Peter,

Yes, Thanks,
But I need to scan the contents of the macros.
Do you know if it is possible to automate the conversion by VBA?. In this
case I will be able to scan the created modules.

thanks again

Guillem
 

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