running multiple macros sequentially
Posted: Mon Nov 22, 2010 6:32 pm
Hi,
I'm building an app to create an Epanet Inp file from the drawing objects.
I've divided the variuos into several functions each handling a discrete task. inow have several function that need to be run in a specific order to build the epanet file this works fine. I'm trying to put all the sub routine calls into function called Oneshot this works from a form button, when i call on Oneshot from the toolbar using ("-vbarun" & vbcr & "c:/mike C/Intellicad vba/epanet 1.dvb!module1.oneshot" & vbcr). can't find macro is returned. Is if ok to have a function with only functions or sub call in it?
Like this:
Public Function OneShot()
call sub or function name
call sub or function name
call sub or function name
form.show
end function
If not a push in right direction would be great
Thanks MikeC
I'm building an app to create an Epanet Inp file from the drawing objects.
I've divided the variuos into several functions each handling a discrete task. inow have several function that need to be run in a specific order to build the epanet file this works fine. I'm trying to put all the sub routine calls into function called Oneshot this works from a form button, when i call on Oneshot from the toolbar using ("-vbarun" & vbcr & "c:/mike C/Intellicad vba/epanet 1.dvb!module1.oneshot" & vbcr). can't find macro is returned. Is if ok to have a function with only functions or sub call in it?
Like this:
Public Function OneShot()
call sub or function name
call sub or function name
call sub or function name
form.show
end function
If not a push in right direction would be great
Thanks MikeC