VBA – How To Activate or Select a Sheet




If you are dealing with code that refers to Activesheet many times, but you aren’t sure how to make the sheet you would like active, here’s how.

Activate Sheet

Before your code that refers to the active sheet, you must activate the sheet you would like manipulated. Here are two ways:

By program name:

By tab name:

Select Worksheet

If you would like to select a worksheet instead of activating it. Use .select instead

VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro – A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!

alt text

Learn More!


<<Return to VBA Examples

Did you find this VBA tutorial useful? Then share it with your friends and colleagues:

One Comment

  1. Alphonse September 16, 2017 at 6:23 pm - Reply

    Hi. Thanks for the explanation, but it would be nice if you explained the difference between selecting a worksheet and activating it. Cheers

Leave A Comment