Create an AutoExec macro that calls your code. (Remember that macros can
only call Functions, not Subs)

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
> How do I write code in a module that will act like an AutoExec macro?
> Basically, I need the same results that "sub Auto_open()" would give in
> Excel.
BOONER - 26 Sep 2006 15:03 GMT
Excelent
> Create an AutoExec macro that calls your code. (Remember that macros can
> only call Functions, not Subs)
>
> > How do I write code in a module that will act like an AutoExec macro?
> > Basically, I need the same results that "sub Auto_open()" would give in
> > Excel.
Write your code as a function.
Use the RunCode action in the Autoexec macro and specify the name of the
function.
The RunCode action will only run functions. No return value is required.
> How do I write code in a module that will act like an AutoExec macro?
> Basically, I need the same results that "sub Auto_open()" would give in
> Excel.
BOONER - 26 Sep 2006 15:03 GMT
Thanks
> Write your code as a function.
> Use the RunCode action in the Autoexec macro and specify the name of the
[quoted text clipped - 4 lines]
> > Basically, I need the same results that "sub Auto_open()" would give in
> > Excel.