Run A Macro

J

JoanaChang

I have problem using the runmacro function!
this two macros are in the same place ("new macros")

when I tried to do this:

Public Sub borrarTODO()
.....
runmacro ("temporal.CrearHOJAnueva")
End Sub

Public Sub CrearHOJAnueva()
...
End Sub

It appears a compile error, "Sub or Function not defined"
What am I doing wrong?

I need examples about runmacro function

Thanks!
Joan
 
J

JuneTheSecond

You would not beed RunMacro function in VBA.
Simply state macro name.
RunMacro function is a function to be used in shapesheet.
 
D

David Parker

If you are trying to run a function that is in another VBA Project, then
check out ExecuteLine method
 

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