Excel 2013 worksheet activate

前端 未结 9 1743
情话喂你
情话喂你 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:52

    Sub Macro1()
    Sheets("Sheet2").Select
    End Sub
    
    Sub Macro2()
    Unload Me
    Call Macro1
    End Sub
    

    This works. I could reproduce your error to an extent, but it may be the location of your macros? (modules vs sheets).

    EDIT: I didn't see your comment at first, I have Excel2010 (which is why I couldn't really reproduce it). -Sorry

提交回复
热议问题