Consulting

Results 1 to 2 of 2

Thread: Solved: difference between activate and select

  1. #1
    VBAX Tutor
    Joined
    Nov 2007
    Posts
    291
    Location

    Solved: difference between activate and select

    Hi,

    I am working on a spreadsheet that already has a macro in it that a previous mush more experienced developer wrote.

    In it he uses :-

    Sheets("Sheet1").Activate
    Sheets("Sheet1").Select

    Why does he need both?
    Can anyone tell me why he did this?
    And what the difference is between the two?

    Cheers
    Phil

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    He doesn't, they are equivalent. I tend to use ACtivate on sheets, Select on a range, but that is just my style.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •