Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Feb 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macro Actions Accessed using Visual Basic (2000)

    Is there sample code around that shows how to reference or set macro actions and action arguments from visual basic? I am using Access 2000. The client has a macro that they customize on occasion. I am using Visual basic to accomplish a similar task but because the client only understands macros and need to change a setting occasionally (including removing a query from the sequence of actions), I would like to iterate through the macro actions and adjust my code accordingly. Tried ACCESSOBJECT available through ALLMACROS collection but I can't seem to find the list of ACTIONS hanging off the object ... Thanks Michael

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Macro Actions Accessed using Visual Basic (2000)

    Welcome to Woody's Lounge!

    Others will correct me if I'm wrong, but as far as I know, the design of a macro can't be edited or viewed from VBA. There is no equivalent for macros of DoCmd.OpenForm (with View:=acDesign).

  3. #3
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Macro Actions Accessed using Visual Basic (2000)

    Why don't you convert the macro to vba and ask the user to input the variable parts with a form or input box ?
    Francois

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •