查看单个帖子
旧 2009-04-13, 08:47 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】adding a control button to a macro

adding a control button to a macro
hi,
i have created a simple marco to save an open drawing to a pdf in a certain directory. it works well. i would now like to have a button, preferably on my toolbar, to run this macro.
is there a simple way to do this? for example, in excel you can just use the control toolbox to add a button an assign the macro to the click event.
any help would be greatly appreciated. again, i am looking to run a macro in a drawing with one click.
thanks,
jon
yep, just like that. go to view, toolbars, customize and look in the macro toolbar section, there is a macro button that you can drag onto any toolbar and configure it.
answer thanks,
found it under customize, commands, macro. i also realized that there is a pretty good help file on it in the api help.
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)