Jump to content

How to run a vb/vba from a toolbar button?


shirazbj

Recommended Posts

I dont use vba but would have thought that you just need to set your button to issue the same commands you would use on the command line to launch it.

 

eg. this is a button macro to run a script-

 

^C^C_filedia 0 scr A3_TOSHIBA-button_ws7 _filedia 1

 

The _filedia commands are necessary to turn off the file selection dialogue whilst calling the script and then turn it back on when the script has finished.

Link to comment
Share on other sites

Hi,

 

I was reading the other thread of toolbar for lisp and have this question for vb.

 

Thanks

 

You can use this lisp command and syntax.

 

(vl-vbarun "//server/share/vbaprog.dvb!macroName)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...