Macro button under customized ribbon tab tries to open old Excel file

前端 未结 3 2010
感情败类
感情败类 2021-01-06 17:24

I created a custom ribbon tab on my Excel like Excel_app_v1.xlsm, and a button under this ribbon tab is connected to a macro. So when I click this button, the m

3条回答
  •  梦谈多话
    2021-01-06 18:18

    Same exact thing happened to me. There's a way to get around this.

    By default, when you create a macro in Excel and run that macro through a custom ribbon button, that ribbon button macro works only in the workbook that contains it.

    To get around this and have the button macros work in all workbooks, you'll need to create a Personal Macro Workbook. Then any macros that you store in your personal workbook on a computer become available to you in any workbook whenever you start Excel on that same computer.

    Create a Personal Macro Workbook

    To get the same ribbon button macros to work on another computer, you'll need to copy the Personal Macro Workbook to another computer and store it in the XLSTART folder. The link above has all the information you'll need.

    Note: Delete the old ribbon button macros. Make sure you create new ribbon button macros that reference the macros from your Personal Macro Workbook.

提交回复
热议问题