What is the difference between Sheets.Select and Sheets.Activate?

后端 未结 3 1705
野性不改
野性不改 2020-12-15 23:00

In VBA for Excel, what is the difference between Sheets.Select and Sheets.Activate ?

3条回答
  •  粉色の甜心
    2020-12-15 23:36

    .activate is you clicking on the worksheet tab.

    .select simulates you doing a control and click on the tab. In VBA you're not in the sheet yet.

    You can .select more than one sheet but .activate only one.

提交回复
热议问题