Multiple Actions

mattalin

Board Regular
Joined
Mar 18, 2003
Messages
89
This might be an easy question but how do you create more than one action for a specific macro?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
From inside Access, go to the Macro Tab. Tap 'New'
Hit the pull-down menu in the first column (default)

Macros execute top to bottom allowing you to script a sequence of actions.
Just add entries
 
Upvote 0
So, if I have one macro, named Open Dialog, that can perform 2 actions it would look like this:

Code:
Macro Name         Condition                  Action
Open Dialog                                  OpenForm
              Not IsLoaded("Form Name")      CancelEvent
Macro#2                                      Close
 
Upvote 0
Yes

As I do not use macros often (VBA only currently), I'm not sure if there's a limit on how many distinct actions you can include, but you can most likely put other macros (with multiple actions of their own) in each list should it be necessary.

When I first started learning access, this is precisely what I was doing - started with Macros with multiple actions. I then used the built in utility off the tools menu to convert a few to VBA and learned VBA mostly by example, books, Access_Help and forum questions.

There are a number of things you can't do with Macros, but mostly that's when you want to completely automate functions and not require a human to manually do steps.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,614
Messages
6,160,839
Members
451,673
Latest member
wella86

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top