Page 1 of 1
Starting a macro with a button
Posted: Fri 18. Nov 2011, 14:01
by hilde73
I wrote a macro to send CAN messages to a IPETRONIK Vout module. The project should be usefull for other people in my company so I wanted to greate an easier way to start the macro. Is it possible to use one of the buttons from the panel to start a VBA macro ?
Thanks in advance.
Carsten
Re: Starting a macro with a button
Posted: Fri 18. Nov 2011, 14:14
by M.Maidhof
Hello,
yes, it is possible to use a button of the panel to start a macro. Simply set the name of the macro in the properties->Execute Command option of the button. The macro must be available in the macro list.
best regards
Michael
Re: Starting a macro with a button
Posted: Mon 16. Jan 2012, 11:59
by PMJ
Hi,
What is the correct syntax for the command caller "sample.mcr" for the button.
I try enter i the execute comand field:
macrorun sample
macrorun sample.mcr
sample.mcr
sample
sample.mcr macrorun
sample macrorun.
I don't know wher is a problem.
Piter
Re: Starting a macro with a button
Posted: Tue 17. Jan 2012, 08:06
by G.Lang
Hi,
if your macro is called "example_123.mcr" then you must use the syntax "example123" in the execute command field. Don´t forget to switch from the "Design Mode" into the "Run Mode" otherwise the panel don´t work.
regards
Gunther