Consulting

Results 1 to 8 of 8

Thread: How to use Embedded Macro - RunMacro feature

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,411
    Location

    How to use Embedded Macro - RunMacro feature

    I have a command button on a subform whose on_click event is an embedded macro. The purpose is to delete/undo the associated record.
    After that, I want to run another VBA procedure that is defined in the forms vb object:

    Public Function RunMacroTest()
         MsgBox "A"
    End Function
    In the embedded macro definition, I have added "RunMacro" and entered RunMacroTest as the procedure to run. I save everything, exit the design view and test. Nothing happens.

    How do you run a custom procedure after an embedded macro is run?

    Thanks.
    Last edited by Aussiebear; 07-08-2024 at 02:56 PM.
    Greg

    Visit my website: http://gregmaxey.com

Posting Permissions

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