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
Starting a macro with a button
Re: Starting a macro with a button
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
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
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
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
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
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