ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Problem to recognize macro (https://www.excelbanter.com/new-users-excel/144966-problem-recognize-macro.html)

Stefan

Problem to recognize macro
 
I am using a macro to direct the out print to two different printers and that
is ok,
But I am using a button in the sheet for it and when I am saving it as a
template and then are trying to use it I get the message cant find macro
€śsheet1!macro1€ť for example. The problem appers when I am saving it as a
template.


Dave Peterson

Problem to recognize macro
 
Instead of using a button from the Forms toolbar, use a commandbutton from the
Control Toolbox Toolbar.

And move your code to that button's _click event.

You may have to modify the code a bit, too.

Stefan wrote:

I am using a macro to direct the out print to two different printers and that
is ok,
But I am using a button in the sheet for it and when I am saving it as a
template and then are trying to use it I get the message cant find macro
€śsheet1!macro1€ť for example. The problem appers when I am saving it as a
template.


--

Dave Peterson

Stefan

Problem to recognize macro
 
Thanks Dave Peterson

It helpt me and everything is working good.

I am sorry that my question is on two places but I had forgotten to write my
e-mail address so I thought it was not published
/Stefan

"Dave Peterson" wrote:

Instead of using a button from the Forms toolbar, use a commandbutton from the
Control Toolbox Toolbar.

And move your code to that button's _click event.

You may have to modify the code a bit, too.

Stefan wrote:

I am using a macro to direct the out print to two different printers and that
is ok,
But I am using a button in the sheet for it and when I am saving it as a
template and then are trying to use it I get the message cant find macro
€œsheet1!macro1€ for example. The problem appers when I am saving it as a
template.


--

Dave Peterson



All times are GMT +1. The time now is 04:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com