Initiate VBA routine from Command-line?

B

Brad

Is it possible to directly initiate a VBA routine from a Command-Line or is
the only approach to initiate a Macro from the Command-Line which in turn can
initiate a VBA routine. I am trying to understand if there is an alternative
to using a Macro.

Thanks,

Brad
 
T

Tom van Stiphout

On Wed, 26 Aug 2009 19:40:01 -0700, Brad

The available command line switches are documented in the help file
topic "Command-line switches for Access". Perhaps /cmd will support
what you are trying to do.

-Tom.
Microsoft Access MVP
 
J

John W. Vinson

What I've done in this circumstance is to use the

/x macroname

command line switch, and have a macro with nothing but a RunCode action.
 
B

Brad

Thanks
--
Brad


Tom van Stiphout said:
On Wed, 26 Aug 2009 19:40:01 -0700, Brad

The available command line switches are documented in the help file
topic "Command-line switches for Access". Perhaps /cmd will support
what you are trying to do.

-Tom.
Microsoft Access MVP
 
B

Brad

John,

Thanks for the help. It looks like there is not a way to directly fire up a
VBA module. Using a Macro is Okay. I just wanted to be sure that I wasn't
missing an easier method.

Brad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top