473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Programmatically documenting macros

112 Expert 100+
Hi All,
I am looking for a way to programmatically pull information about macros from the database. For instance, I would like to be able to pull the names of the arguments out and put those in a table. I know of SaveAsText and I can pick the text files apart based on their structure but it seems a clumsy way to do it. Are any of the macro properties exposed in the access object model?

Thanks in advance.
Mar 18 '08 #1
1 1959
ADezii
8,834 Expert 8TB
Hi All,
I am looking for a way to programmatically pull information about macros from the database. For instance, I would like to be able to pull the names of the arguments out and put those in a table. I know of SaveAsText and I can pick the text files apart based on their structure but it seems a clumsy way to do it. Are any of the macro properties exposed in the access object model?

Thanks in advance.
These are some of the Properties I know you can retrieve, but as far as the rest, I'm not really sure if they are retrievable.
Expand|Select|Wrap|Line Numbers
  1. Dim MyDB As DAO.Database
  2.  
  3. Set MyDB = CurrentDb()
  4.  
  5. With MyDB.Containers("Scripts").Documents("AutoExec")
  6.   Debug.Print "Container: " & .Container
  7.   Debug.Print "Date Created: " & .DateCreated
  8.   Debug.Print "Last Updated: " & .LastUpdated
  9.   Debug.Print "Name: " & .Name
  10.   Debug.Print "Owner: " & .Owner
  11.   Debug.Print "User Name: " & .UserName
  12.   Debug.Print "Permissions: " & .Permissions
  13.   Debug.Print "All Permissions: " & .AllPermissions
  14. End With
OUTPUT:
Expand|Select|Wrap|Line Numbers
  1. Container: Scripts
  2. Date Created: 4/13/2007 6:45:18 PM
  3. Last Updated: 4/13/2007 6:45:18 PM
  4. Name: AutoExec
  5. Owner: admin
  6. User Name: admin
  7. Permissions: 1048575
  8. All Permissions: 1048575
Mar 19 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Isaac Rodriguez | last post by:
Hi, Are there any standarized ways of documenting Python code? When I check the __doc__ attribute of the standard modules, the results are kind of plain. Is everyone using this style? Since...
2
by: Lasse Vågsæther Karlsen | last post by:
I notice that if I use this syntax: def classname: ... ## # closes the database connection and releases the resources. def close(self): .... ##
17
by: Jelmer | last post by:
Hi, I am mildly familiar with ms access developement and I have been asked to port and document a ms access app. I expect the porting (97 to XP) to be fairly straightforward. However documenting...
1
by: strauss.sean | last post by:
I have been asked to begin documenting the ongoing development and changes to a database that I maintain. Not the entry of data; this is about the changes to how tables are restructured, and any...
6
by: David Gartrell | last post by:
Hi i'm trying to import an Excel Spreadsheet into Access2000 but the data types for two of the fields in my imported table are being identified incorrectly. Is there a way of using some VB code in...
13
by: Jeff Rodriguez | last post by:
What sort of documentation do you do on your code? I've never done any code development on a big project and I want to start documenting my code in a way that makes sense, is easy to understand,...
8
by: Spleenwort | last post by:
With regard to XML comments in c#. I think that #regions should be self-documenting relative to XML comments or that a <region> tag should be defined and auto-inserted when you type #region...
3
LacrosseB0ss
by: LacrosseB0ss | last post by:
Quick question: is there a way to programmatically turn off the warning message for macros in Excel? (Macros can be harmful ... enable/disable) The reason for the question is on our intranet page...
2
by: Tina | last post by:
How can I programmatically navigate a website just as a user would? click on buttons, hyperlinks, etc. I know how to read nodes using XPath but I don't know what classes to use to navigate. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.