MeyerForHire
New member
- Local time
- Today, 14:17
- Joined
- Sep 19, 2013
- Messages
- 3
[SOLVED] Access vba Get Macro Properties and Comments
Hello All,
First time poster, long time user.
Using Access 2007:
Does anyone know how to get macro properties using vba? I've attempted something similar to the below to try and divine macro properties:
Nothing comes up except the macro names. In my database, I have an AutoExec macro that I have manually added a description to; "This macro auto-executes when the database is opened by virtue of it's name." I can view the description by right-clicking on the macro and choosing 'Object Properties'.
Background:
I am attempting to make a universal Access Database documenter for the many, many homemade databases on our network. I'm only interested in certain pieces of information and I would like to make a report to view the information how I want to view it. Thus, I don't care for the built-in documenter--I want to do it my way.
I worded the title of this post such that maybe the next schmoe looking to do the same will have a little better Google-luck.
Thanks so much in advance!
Hello All,
First time poster, long time user.
Using Access 2007:
Does anyone know how to get macro properties using vba? I've attempted something similar to the below to try and divine macro properties:
Code:
Sub MacroDiscovery()
Dim mcr As AccessObject
Dim prop As AccessObjectProperty
For Each mcr In CurrentProject.AllMacros
Debug.Print mcr.Name
For Each prop In mcr.Properties
Debug.Print prop.Name
Debug.Print prop.Value
Next
Next
End Sub
Nothing comes up except the macro names. In my database, I have an AutoExec macro that I have manually added a description to; "This macro auto-executes when the database is opened by virtue of it's name." I can view the description by right-clicking on the macro and choosing 'Object Properties'.
Background:
I am attempting to make a universal Access Database documenter for the many, many homemade databases on our network. I'm only interested in certain pieces of information and I would like to make a report to view the information how I want to view it. Thus, I don't care for the built-in documenter--I want to do it my way.
I worded the title of this post such that maybe the next schmoe looking to do the same will have a little better Google-luck.
Thanks so much in advance!
Last edited: