Excel 2013 worksheet activate

前端 未结 9 1740
情话喂你
情话喂你 2021-01-03 03:28

I have an issue with activating a sheet from a user form, the same code works fine in Excel 2003 to Excel 2010, doesn\'t work with Excel 2013.

This is how to simply

9条回答
  •  孤街浪徒
    2021-01-03 03:57

    I was able to reproduce the error in Excel 2013 as per Profex's answer. A workaround that solved the issue for me was to make my userform modeless.

    userform1.show vbModeless
    

    I understand that this workaround won't be helpful if you require a modal form, but hopefully it will save the next person some time.

提交回复
热议问题