dick wrote:
Quote:
I can't seem to get AutoExec to run a function. Per an article on this
group, I:
1) built a boolean function in a module that simply issues a MsgBox,
then returns True
2) in AutoExec macro, I wrote a condition "onOpen()=False" including
the dbl quotes. For the action I put out another MsgBox saying 'onOp is
False'.
>
The 2nd MsgBox always appears. I put a breakpoint in the function. It
never triggered, so my function is not being called.
>
Help - what is wrong. This is so simple.
>
DIck Penny
What exactly are you trying to make happen? or what did you expect to
happen?
What is OnOp? Where is it located - in a form? a module?
I slapped up a quick function, and called it in an AutoExec macro, and
it worked fine.
Public Function fShowMsg()
fShowMsg = MsgBox("Did you see this?", vbYesNo)
If fShowMsg = vbYes Then
MsgBox "You answered Yes", vbOKOnly
End If
End Function
the autoexec macro is just
RunCode fShowMsg