Copy a worksheet to a new workbook and have a button point to the macro in the NEW workbook?

后端 未结 1 1266
名媛妹妹
名媛妹妹 2021-01-29 11:03

I have a worksheet that looks like a form. It has a \"Reset\" button to clear the values.

There is a macro that I can run that copies that sheet into a new Workbook and

1条回答
  •  终归单人心
    2021-01-29 11:52

    You should use 'ActiveX form button' instead of 'simple form button' (which I guess you use). Then you have to put reset procedure within ActiveX button event (double click on it to edit that procedure). As the result of coping the sheet both button and the procedure would be moved to new workbook which will break any reference to original file.

    0 讨论(0)
提交回复
热议问题