how to start vba-procedure from macro

B

Bart

Hi,

i defined following procedure in 'module1' (Access 2007):
Public Sub maproc()
Shell "Notepad.exe"
End Sub

Now i want to start it from a macro. in column 'Action', i took
'ExecuteProcedure' (translated); in column 'Arguments' (also translated), i
put: maproc, then: [module1]!maproc, but i always get the error "can not
find the name maproc ...'.

How can i start that procedure from a macro?
Thanks
Bart
 
B

Bart

i found it:

Sub maproc()
Shell "Notepad.exe"
End Sub

Function callsub()
maproc
End Function

macro: action: RunCode - arguments: maproc()
 

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