excel vba - Keep buttons in VBA -


i started learn vba 2 weeks ago. have question regarding buttons created run different procedures.

for instance created button (in custom ribbon->assign macro) run procedure:

sub mergecsvfiles()     shell environ$("comspec") & " /c copy c:\users\user\desktop\new\*.csv c:\users\user\desktop\new\combinedfile.csv " end sub 

but when send macro (xlsm) file via e-mail buttons not there. how can manage send macro via e-mail , keep buttons?

ps i'm using office 2016.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -